summaryrefslogtreecommitdiff
path: root/tests
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-07-09 18:32:54 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-07-09 18:32:54 +0200
commit4e6132889aa245d663523e9dd90c0d5bdbdfc2ca (patch)
treebdd1b3bf83e303b171a3ea3a9bfcf6befa02db9d /tests
parent6e7b0cf139fe37648f14327f2da4f3321ae8e244 (diff)
ApplicationManager: return a const& WindowList in GetWindows
Since we don't have to fetch anything, we can just avoid copies here. (bzr r3983.3.5)
Diffstat (limited to 'tests')
-rw-r--r--tests/mock-application.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mock-application.h b/tests/mock-application.h
index cf46da709..0fc7ef355 100644
--- a/tests/mock-application.h
+++ b/tests/mock-application.h
@@ -166,7 +166,7 @@ struct MockApplication : unity::Application
MOCK_CONST_METHOD0(type, unity::AppType());
MOCK_CONST_METHOD0(repr, std::string());
MOCK_CONST_METHOD0(desktop_id, std::string());
- MOCK_CONST_METHOD0(GetWindows, unity::WindowList());
+ MOCK_CONST_METHOD0(GetWindows, unity::WindowList const&());
MOCK_CONST_METHOD1(OwnsWindow, bool(Window));
MOCK_CONST_METHOD0(GetSupportedMimeTypes, std::vector<std::string>());
MOCK_CONST_METHOD0(GetFocusableWindow, unity::ApplicationWindowPtr());