Skip to content

Commit

Permalink
Drop 'const' declaration from courgette unittest.
Browse files Browse the repository at this point in the history
---
../../courgette/label_manager_unittest.cc:41:3: error: 'const' type qualifier on return type has no effect [-Werror,-Wignored-qualifiers]
  const size_t LabelCount() const { return labels_.size(); };
  ^~~~~~
1 error generated.
---

BUG=567505
TBR=huangs@chromium.org
NOTRY=true
NOTREECHECKS=true

Review URL: https://codereview.chromium.org/1501413004

Cr-Commit-Position: refs/heads/master@{#363756}
  • Loading branch information
mikewest authored and Commit bot committed Dec 8, 2015
1 parent 7696afc commit a2bdd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion courgette/label_manager_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TestRvaVisitor : public LabelManager::RvaVisitor {
// Test version of LabelManager: Expose data to test implementation.
class TestLabelManager : public LabelManager {
public:
const size_t LabelCount() const { return labels_.size(); };
size_t LabelCount() const { return labels_.size(); };
};

void CheckLabelManagerContent(TestLabelManager* label_manager,
Expand Down

0 comments on commit a2bdd65

Please sign in to comment.