diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2017-12-12T10·47+0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12T10·47+0100 |
commit | de38fa9987fcd1c2b79c826d49bd235dbd241676 (patch) | |
tree | 94c5d433aa95003ed02a566a0f78d48e5d86d1cb /src/libstore | |
parent | e3c19ff9bcbcaf2ec8e7c3d7f964e8d8aefaea43 (diff) | |
parent | 00e0c416ffccf6edb63fe7f4b01422915ff12f86 (diff) |
Merge pull request #1724 from dtzWill/fix/minor-warnings
fix minor warnings
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 866964a4c465..d4bd650baf22 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -79,7 +79,7 @@ typedef std::shared_ptr<Goal> GoalPtr; typedef std::weak_ptr<Goal> WeakGoalPtr; struct CompareGoalPtrs { - bool operator() (const GoalPtr & a, const GoalPtr & b); + bool operator() (const GoalPtr & a, const GoalPtr & b) const; }; /* Set of goals. */ @@ -178,7 +178,7 @@ protected: }; -bool CompareGoalPtrs::operator() (const GoalPtr & a, const GoalPtr & b) { +bool CompareGoalPtrs::operator() (const GoalPtr & a, const GoalPtr & b) const { string s1 = a->key(); string s2 = b->key(); return s1 < s2; |