[Libreoffice-commits] core.git: vcl/qa vcl/unx
Stephan Bergmann
sbergman at redhat.com
Fri Feb 28 03:16:05 PST 2014
vcl/qa/cppunit/canvasbitmaptest.cxx | 2 +-
vcl/unx/gtk/window/gtksalframe.cxx | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
New commits:
commit 35fb9ca387e6e977b873698e8f4f1c01d572ae8c
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Feb 28 12:14:18 2014 +0100
bool clean-up fixup
Change-Id: I0a302d7f91ef07992f95a8ccd48efec862519ab1
diff --git a/vcl/qa/cppunit/canvasbitmaptest.cxx b/vcl/qa/cppunit/canvasbitmaptest.cxx
index 3fac60c..22f64bd 100644
--- a/vcl/qa/cppunit/canvasbitmaptest.cxx
+++ b/vcl/qa/cppunit/canvasbitmaptest.cxx
@@ -196,7 +196,7 @@ void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp,
xPal->getNumberOfEntries() == 1L << nOriginalDepth);
uno::Sequence<double> aIndex;
CPPUNIT_ASSERT_MESSAGE( "Palette is not read-only",
- xPal->setIndex(aIndex,true,0) == sal_False);
+ !xPal->setIndex(aIndex,true,0));
CPPUNIT_ASSERT_MESSAGE( "Palette entry 0 is not opaque",
xPal->getIndex(aIndex,0));
CPPUNIT_ASSERT_MESSAGE( "Palette has no valid color space",
diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx
index 9f32854..55c592a 100644
--- a/vcl/unx/gtk/window/gtksalframe.cxx
+++ b/vcl/unx/gtk/window/gtksalframe.cxx
@@ -1362,8 +1362,7 @@ void GtkSalFrame::Init( SalFrame* pParent, sal_uLong nStyle )
if( bDecoHandling )
{
- // Using true or TRUE below causes a false warning from loplugin with Clang 3.2
- gtk_window_set_resizable( GTK_WINDOW(m_pWindow), (nStyle & SAL_FRAME_STYLE_SIZEABLE) ? 1 : FALSE );
+ gtk_window_set_resizable( GTK_WINDOW(m_pWindow), (nStyle & SAL_FRAME_STYLE_SIZEABLE) != 0 );
if( ( (nStyle & (SAL_FRAME_STYLE_OWNERDRAWDECORATION)) ) )
lcl_set_accept_focus( GTK_WINDOW(m_pWindow), false, false );
}
@@ -3155,7 +3154,7 @@ bool GtkSalFrame::Dispatch( const XEvent* pEvent )
GdkEventFocus aEvent;
aEvent.type = GDK_FOCUS_CHANGE;
aEvent.window = widget_get_window( m_pWindow );
- aEvent.send_event = 1;
+ aEvent.send_event = gint8(TRUE);
aEvent.in = gint16(pEvent->xclient.data.l[1] == 1);
signalFocus( m_pWindow, &aEvent, this );
}
More information about the Libreoffice-commits
mailing list