Skip to content
Snippets Groups Projects
Commit 5dea0622 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Idem (constness fix).

* `compare' in GCC 2.95 is broken.
parent 4a266e35
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ static TableId dbSubstitutes = 0;
static TableId dbDerivers = 0;
bool Substitute::operator == (const Substitute & sub)
bool Substitute::operator == (const Substitute & sub) const
{
return program == sub.program
&& args == sub.args;
......@@ -170,7 +170,7 @@ void copyPath(const Path & src, const Path & dst)
bool isInStore(const Path & path)
{
return path[0] == '/'
&& path.compare(0, nixStore.size(), nixStore) == 0
&& string(path, 0, nixStore.size()) == nixStore
&& path.size() >= nixStore.size() + 2
&& path[nixStore.size()] == '/';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment