diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-04-19 17:49:03 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-04-19 17:49:03 +0000 |
| commit | b1d46227d4ed9e86952e4d2d6059ecbde2d248e0 (patch) | |
| tree | abba06d5ecd01b9210f70130d3a36c8747c36d8f /src/AbstractDiskWriter.h | |
| parent | 1457d7f660ee83fca44730b38a3f2af800684f2a (diff) | |
make string type argument const string& where possible
Diffstat (limited to 'src/AbstractDiskWriter.h')
| -rw-r--r-- | src/AbstractDiskWriter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AbstractDiskWriter.h b/src/AbstractDiskWriter.h index 447aedaa..02d1ff06 100644 --- a/src/AbstractDiskWriter.h +++ b/src/AbstractDiskWriter.h @@ -35,7 +35,7 @@ protected: MessageDigestContext ctx; #endif // ENABLE_SHA1DIGEST - void createFile(string filename, int addFlags = 0); + void createFile(const string& filename, int addFlags = 0); void writeDataInternal(const char* data, int len); int readDataInternal(char* data, int len); @@ -50,7 +50,7 @@ public: void closeFile(); - void openExistingFile(string filename); + void openExistingFile(const string& filename); string sha1Sum(long long int offset, long long int length); |
