Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

dirstate.cpp: use type 'const string&' for param hgroot on dirstatecache::get

Changeset 8f033331c7ce

Parent a61dedfe9c84

by Adrian Buehlmann

Changes to one file · Browse files at 8f033331c7ce Showing diff from parent a61dedfe9c84 Diff from another changeset...

 
117
118
119
120
 
121
122
123
 
165
166
167
168
 
169
170
171
 
117
118
119
 
120
121
122
123
 
165
166
167
 
168
169
170
171
@@ -117,7 +117,7 @@
  static std::list<entry> _cache;    public: - static const dirstate* get(const char* hgroot); + static const dirstate* get(const std::string& hgroot);  };    std::list<dirstatecache::entry> dirstatecache::_cache; @@ -165,7 +165,7 @@
 }     -const dirstate* dirstatecache::get(const char* hgroot) +const dirstate* dirstatecache::get(const std::string& hgroot)  {   std::string path = hgroot;   path += "/.hg/dirstate";