summaryrefslogtreecommitdiff
path: root/src/mongo/util/mmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/mmap.h')
-rw-r--r--src/mongo/util/mmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/mmap.h b/src/mongo/util/mmap.h
index 03be7b535e2..da5f28ef627 100644
--- a/src/mongo/util/mmap.h
+++ b/src/mongo/util/mmap.h
@@ -99,7 +99,7 @@ namespace mongo {
virtual bool isMongoMMF() { return false; }
string filename() const { return _filename; }
- void setFilename(string fn);
+ void setFilename(const std::string& fn);
private:
string _filename;
@@ -142,7 +142,7 @@ namespace mongo {
/** @return The MongoFile object associated with the specified file name. If no file is open
with the specified name, returns null.
*/
- MongoFile* findByPath(string path) {
+ MongoFile* findByPath(const std::string& path) {
map<string,MongoFile*>::iterator i = MongoFile::pathToFile.find(path);
return i == MongoFile::pathToFile.end() ? NULL : i->second;
}
@@ -185,7 +185,7 @@ namespace mongo {
/* Create. Must not exist.
@param zero fill file with zeros when true
*/
- void* create(string filename, unsigned long long len, bool zero);
+ void* create(const std::string& filename, unsigned long long len, bool zero);
void flush(bool sync);
virtual Flushable * prepareFlush();