Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/path.cc

Issue 10829027: [NaCl SDK] Add nacl_mounts to NaCl SDK build. Experimental for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync again Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_mounts/path.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/path.cc b/native_client_sdk/src/libraries/nacl_mounts/path.cc
index 363a4e3849e5c33c0a6318379a25ed832e311d33..47d4f4586fe4f98365616792cb27f2a5be8761bf 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/path.cc
+++ b/native_client_sdk/src/libraries/nacl_mounts/path.cc
@@ -2,13 +2,12 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+#include "nacl_mounts/path.h"
#include <stdio.h>
#include <string.h>
#include <string>
-#include "nacl_mounts/path.h"
-
Path::Path() {}
Path::Path(const Path& path) {
@@ -91,7 +90,6 @@ StringArray_t Path::Split() const {
// static
StringArray_t Path::Normalize(const StringArray_t& paths) {
StringArray_t path_out;
- int back = 0;
for (size_t index = 0; index < paths.size(); index++) {
const std::string &curr = paths[index];
@@ -166,7 +164,6 @@ StringArray_t Path::Split(const std::string& path) {
StringArray_t components;
size_t offs = 0;
size_t next = 0;
- ssize_t cnt = 0;
if (path[0] == '/') {
offs = 1;
@@ -196,4 +193,4 @@ Path& Path::operator =(const Path& p) {
Path& Path::operator =(const std::string& p) {
return Set(p);
-}
+}
« no previous file with comments | « native_client_sdk/src/libraries/nacl_mounts/path.h ('k') | native_client_sdk/src/libraries/utils/auto_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698