Skip to content

Commit

Permalink
make filename arg const
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Mar 2, 2012
1 parent dca984b commit e58674e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/osmium/storage/byid.hpp
Expand Up @@ -269,7 +269,7 @@ namespace Osmium {
* @param remove Should the file be removed after use?
* @exception std::bad_alloc Thrown when there is not enough memory or some other problem.
*/
Mmap(std::string& filename, bool remove=true) : ById<TValue>(), m_size(1) {
Mmap(const std::string& filename, bool remove=true) : ById<TValue>(), m_size(1) {
if (filename == "") {
FILE* file = tmpfile();
if (!file) {
Expand Down

0 comments on commit e58674e

Please sign in to comment.