[Libreoffice-commits] core.git: vcl/source

Stephan Bergmann sbergman at redhat.com
Wed Jul 8 12:32:34 PDT 2015


 vcl/source/edit/textundo.cxx |    1 +
 vcl/source/window/event.cxx  |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit 97df2dee8ea4f33f4efb7467cfeec2d8954c006c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jul 8 21:29:36 2015 +0200

    Avoid loplugin:staticmethods in non-debug build
    
    Change-Id: Ieb3f5a50ed0ddc9109dc0ad16caa8a8ac5b16362

diff --git a/vcl/source/edit/textundo.cxx b/vcl/source/edit/textundo.cxx
index 1ba423a..e28387b 100644
--- a/vcl/source/edit/textundo.cxx
+++ b/vcl/source/edit/textundo.cxx
@@ -108,6 +108,7 @@ bool TextUndoManager::Redo()
 void TextUndoManager::UndoRedoStart()
 {
     DBG_ASSERT( GetView(), "Undo/Redo: Active View?" );
+    (void) this; // avoid loplugin:staticmethods
 }
 
 void TextUndoManager::UndoRedoEnd()
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index ec6a9b6..ea819cd 100644
--- a/vcl/source/window/event.cxx
+++ b/vcl/source/window/event.cxx
@@ -295,6 +295,7 @@ void Window::RemoveUserEvent( ImplSVEvent * nUserEvent )
                 "Window::RemoveUserEvent(): Event doesn't send to this window or is already removed" );
     DBG_ASSERT( nUserEvent->mbCall,
                 "Window::RemoveUserEvent(): Event is already removed" );
+    (void) this; // avoid loplugin:staticmethods
 
     if ( nUserEvent->mpWindow )
     {


More information about the Libreoffice-commits mailing list