diff options
author | Thiago Farina <tfarina@chromium.org> | 2012-04-28 18:21:37 (GMT) |
---|---|---|
committer | Thiago Farina <tfarina@chromium.org> | 2012-04-28 18:24:57 (GMT) |
commit | a46abb1011cbf99bf9752bc440246dd5c1cb5a9a (patch) | |
tree | 9434c76ccc10b5da7c6346077d8ceb9ef5933808 /src/disk_interface.h | |
parent | e3b98c7fe46d1ecfc6246b76fbc2282ad61c0afb (diff) | |
download | Ninja-a46abb1011cbf99bf9752bc440246dd5c1cb5a9a.zip Ninja-a46abb1011cbf99bf9752bc440246dd5c1cb5a9a.tar.gz Ninja-a46abb1011cbf99bf9752bc440246dd5c1cb5a9a.tar.bz2 |
Put & operator with the type rather than the variable name.
Signed-off-by: Thiago Farina <tfarina@chromium.org>
Diffstat (limited to 'src/disk_interface.h')
-rw-r--r-- | src/disk_interface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/disk_interface.h b/src/disk_interface.h index c0f5ee5..55f8a21 100644 --- a/src/disk_interface.h +++ b/src/disk_interface.h @@ -36,7 +36,7 @@ struct DiskInterface { /// Create a file, with the specified name and contents /// Returns true on success, false on failure - virtual bool WriteFile(const string & path, const string & contents) = 0; + virtual bool WriteFile(const string& path, const string& contents) = 0; /// Read a file to a string. Fill in |err| on error. virtual string ReadFile(const string& path, string* err) = 0; @@ -58,7 +58,7 @@ struct RealDiskInterface : public DiskInterface { virtual ~RealDiskInterface() {} virtual TimeStamp Stat(const string& path); virtual bool MakeDir(const string& path); - virtual bool WriteFile(const string & path, const string & contents); + virtual bool WriteFile(const string& path, const string& contents); virtual string ReadFile(const string& path, string* err); virtual int RemoveFile(const string& path); }; |