diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-09-17 08:57:18 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-09-17 09:24:44 +0200 |
commit | 07629f0d7cc628ffbeeaafbddbe021eb6496b3ab (patch) | |
tree | 1cd43f0e11c775d16caedf8d3f72154c35aff7a6 | |
parent | 67845b541e39d180d91f7bc8c1849c8df40d2f15 (diff) |
Mark getMobileAppDocId() as const
Change-Id: Ie02cf07ce12ad63bf5374d94bdbd1b55eaeec4da
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102897
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r-- | kit/ChildSession.hpp | 2 | ||||
-rw-r--r-- | kit/Kit.cpp | 2 | ||||
-rw-r--r-- | test/WhiteBoxTests.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/kit/ChildSession.hpp b/kit/ChildSession.hpp index 3b6226d8f..c828fcce2 100644 --- a/kit/ChildSession.hpp +++ b/kit/ChildSession.hpp @@ -72,7 +72,7 @@ public: virtual void alertAllUsers(const std::string& cmd, const std::string& kind) = 0; - virtual unsigned getMobileAppDocId() = 0; + virtual unsigned getMobileAppDocId() const = 0; }; struct RecordedEvent diff --git a/kit/Kit.cpp b/kit/Kit.cpp index c955a3339..a68b40e1d 100644 --- a/kit/Kit.cpp +++ b/kit/Kit.cpp @@ -708,7 +708,7 @@ public: alertAllUsers("errortoall: cmd=" + cmd + " kind=" + kind); } - unsigned getMobileAppDocId() override + unsigned getMobileAppDocId() const override { return _mobileAppDocId; } diff --git a/test/WhiteBoxTests.cpp b/test/WhiteBoxTests.cpp index 1982f328a..445a7134a 100644 --- a/test/WhiteBoxTests.cpp +++ b/test/WhiteBoxTests.cpp @@ -666,7 +666,7 @@ public: { } - unsigned getMobileAppDocId() override + unsigned getMobileAppDocId() const override { return 0; } |