diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-09-20 05:07:57 +0200 | 
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-09-20 05:07:57 +0200 | 
| commit | 2734b25ca2f2a03e765aecc6204d39d16594d472 (patch) | |
| tree | d28fbfadff21932832a87f0573e79db8fb108075 | |
| parent | b41ebfb6d1f381d33962802d922c818c356d4bce (diff) | |
MockResults: small cleanups
(bzr r4253.1.11)
| -rw-r--r-- | tests/MockResults.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/tests/MockResults.h b/tests/MockResults.h index cb9c4591c..1bd20a6d8 100644 --- a/tests/MockResults.h +++ b/tests/MockResults.h @@ -32,7 +32,7 @@ struct MockResult : Result  : Result(nullptr, nullptr, nullptr)  {  uri.SetGetterFunction([index] { return "proto://result-" + std::to_string(index); }); - icon_hint.SetGetterFunction([index] { return ""; }); + icon_hint.SetGetterFunction([index] { return "icon-result-" + std::to_string(index); });  category_index.SetGetterFunction([index] { return 0; });  result_type.SetGetterFunction([index] { return 0; });  mimetype.SetGetterFunction([index] { return "mime-type-" + std::to_string(index); }); @@ -51,7 +51,7 @@ struct MockResults : Results  count.SetGetterFunction([count_] { return count_; });  } - virtual const Result RowAtIndex(std::size_t index) const override + const Result RowAtIndex(std::size_t index) const override  {  return MockResult(index);  } | 
