summaryrefslogtreecommitdiff
path: root/src/DiskWriter.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-04-19 17:49:03 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-04-19 17:49:03 +0000
commitb1d46227d4ed9e86952e4d2d6059ecbde2d248e0 (patch)
treeabba06d5ecd01b9210f70130d3a36c8747c36d8f /src/DiskWriter.h
parent1457d7f660ee83fca44730b38a3f2af800684f2a (diff)
make string type argument const string& where possible
Diffstat (limited to 'src/DiskWriter.h')
-rw-r--r--src/DiskWriter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DiskWriter.h b/src/DiskWriter.h
index 9e910932..47a2c2a2 100644
--- a/src/DiskWriter.h
+++ b/src/DiskWriter.h
@@ -39,7 +39,7 @@ public:
* If the file exists, then it is truncated to 0 length.
* @param filename the file name to be opened.
*/
- virtual void initAndOpenFile(string filename) = 0;
+ virtual void initAndOpenFile(const string& filename) = 0;
virtual void openFile(const string& filename) = 0;
@@ -54,7 +54,7 @@ public:
*
* @param filename the file name to be opened.
*/
- virtual void openExistingFile(string filename) = 0;
+ virtual void openExistingFile(const string& filename) = 0;
/*
* Writes len bytes from data to this binary stream at offset position.