[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sw/inc sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Fri Jan 23 08:21:59 PST 2015
sw/inc/viewsh.hxx | 4 ++--
sw/source/core/view/viewsh.cxx | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 4b63206030ddf7f20c5b6ea606cd2e6507a04588
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Fri Jan 23 17:13:03 2015 +0100
sw: missing consts
Change-Id: I052c8dfb668cbc31ba03d9b68bc21be58fce0e2a
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 89ebbc6..25a50bc 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -580,11 +580,11 @@ public:
/// The actual implementation of the vcl::ITiledRenderable::registerCallback() API for Writer.
void registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pLibreOfficeKitData);
/// Invokes the registered callback, if there are any.
- void libreOfficeKitCallback(int nType, const char* pPayload);
+ void libreOfficeKitCallback(int nType, const char* pPayload) const;
/// Set if we are doing tiled rendering.
void setTiledRendering(bool bTiledRendering);
/// Are we doing tiled rendering?
- bool isTiledRendering();
+ bool isTiledRendering() const;
SwViewShell* GetNext()
{ return GetNextInRing(); }
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index b452db5..964cf83 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -123,7 +123,7 @@ void SwViewShell::registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallbac
mpLibreOfficeKitData = pData;
}
-void SwViewShell::libreOfficeKitCallback(int nType, const char* pPayload)
+void SwViewShell::libreOfficeKitCallback(int nType, const char* pPayload) const
{
if (mpLibreOfficeKitCallback)
mpLibreOfficeKitCallback(nType, pPayload, mpLibreOfficeKitData);
@@ -134,7 +134,7 @@ void SwViewShell::setTiledRendering(bool bTiledRendering)
mbTiledRendering = bTiledRendering;
}
-bool SwViewShell::isTiledRendering()
+bool SwViewShell::isTiledRendering() const
{
return mbTiledRendering;
}
More information about the Libreoffice-commits
mailing list