Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/coding
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2013-04-08 17:08:12 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:52:57 +0300
commit8462403a776ac936ddf9cc4d8e96e86ce63711ff (patch)
tree04d9705f655bc41e313a3cb0b7679c69e29a516c /coding
parent3f348ed96143165c2f12409073c28b1f8b38addf (diff)
Return file name by const reference in readers.
Diffstat (limited to 'coding')
-rw-r--r--coding/file_container.hpp2
-rw-r--r--coding/reader.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/coding/file_container.hpp b/coding/file_container.hpp
index 7dd669cdb3..ad7f64af80 100644
--- a/coding/file_container.hpp
+++ b/coding/file_container.hpp
@@ -99,7 +99,7 @@ public:
}
inline uint64_t GetFileSize() const { return m_source.Size(); }
- inline string GetFileName() const { return m_source.GetName(); }
+ inline string const & GetFileName() const { return m_source.GetName(); }
private:
ReaderT m_source;
diff --git a/coding/reader.hpp b/coding/reader.hpp
index df33f77176..3fec27be31 100644
--- a/coding/reader.hpp
+++ b/coding/reader.hpp
@@ -147,7 +147,7 @@ public:
virtual ModelReader * CreateSubReader(uint64_t pos, uint64_t size) const = 0;
- inline string GetName() const { return m_name; }
+ inline string const & GetName() const { return m_name; }
};
// Reader pointer class for data files.
@@ -163,7 +163,7 @@ public:
return m_p->CreateSubReader(pos, size);
}
- inline string GetName() const { return m_p->GetName(); }
+ inline string const & GetName() const { return m_p->GetName(); }
};