OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 #include "nacl_io/path.h" | 5 #include "nacl_io/path.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 namespace nacl_io { |
| 12 |
11 Path::Path() {} | 13 Path::Path() {} |
12 | 14 |
13 Path::Path(const Path& path) { | 15 Path::Path(const Path& path) { |
14 paths_ = path.paths_; | 16 paths_ = path.paths_; |
15 } | 17 } |
16 | 18 |
17 Path::Path(const std::string& path) { | 19 Path::Path(const std::string& path) { |
18 Set(path); | 20 Set(path); |
19 } | 21 } |
20 | 22 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 197 |
196 Path& Path::operator =(const Path& p) { | 198 Path& Path::operator =(const Path& p) { |
197 paths_ = p.paths_; | 199 paths_ = p.paths_; |
198 return *this; | 200 return *this; |
199 } | 201 } |
200 | 202 |
201 Path& Path::operator =(const std::string& p) { | 203 Path& Path::operator =(const std::string& p) { |
202 return Set(p); | 204 return Set(p); |
203 } | 205 } |
204 | 206 |
| 207 } // namespace nacl_io |
| 208 |
OLD | NEW |