Kaydet (Commit) c7ce08fb authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: missing consts

Change-Id: I052c8dfb668cbc31ba03d9b68bc21be58fce0e2a
üst e57a6494
...@@ -580,11 +580,11 @@ public: ...@@ -580,11 +580,11 @@ public:
/// The actual implementation of the vcl::ITiledRenderable::registerCallback() API for Writer. /// The actual implementation of the vcl::ITiledRenderable::registerCallback() API for Writer.
void registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pLibreOfficeKitData); void registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pLibreOfficeKitData);
/// Invokes the registered callback, if there are any. /// 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. /// Set if we are doing tiled rendering.
void setTiledRendering(bool bTiledRendering); void setTiledRendering(bool bTiledRendering);
/// Are we doing tiled rendering? /// Are we doing tiled rendering?
bool isTiledRendering(); bool isTiledRendering() const;
}; };
......
...@@ -123,7 +123,7 @@ void SwViewShell::registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallbac ...@@ -123,7 +123,7 @@ void SwViewShell::registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallbac
mpLibreOfficeKitData = pData; mpLibreOfficeKitData = pData;
} }
void SwViewShell::libreOfficeKitCallback(int nType, const char* pPayload) void SwViewShell::libreOfficeKitCallback(int nType, const char* pPayload) const
{ {
if (mpLibreOfficeKitCallback) if (mpLibreOfficeKitCallback)
mpLibreOfficeKitCallback(nType, pPayload, mpLibreOfficeKitData); mpLibreOfficeKitCallback(nType, pPayload, mpLibreOfficeKitData);
...@@ -134,7 +134,7 @@ void SwViewShell::setTiledRendering(bool bTiledRendering) ...@@ -134,7 +134,7 @@ void SwViewShell::setTiledRendering(bool bTiledRendering)
mbTiledRendering = bTiledRendering; mbTiledRendering = bTiledRendering;
} }
bool SwViewShell::isTiledRendering() bool SwViewShell::isTiledRendering() const
{ {
return mbTiledRendering; return mbTiledRendering;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment