[Libreoffice-commits] core.git: 2 commits - sw/inc ucb/source vcl/unx

Matúš Kukan matus.kukan at collabora.com
Tue May 13 11:03:34 PDT 2014


 sw/inc/crsrsh.hxx                              |    2 +-
 ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx |   10 ----------
 vcl/unx/generic/app/saldisp.cxx                |    2 ++
 3 files changed, 3 insertions(+), 11 deletions(-)

New commits:
commit 054738256c37b007a371249cbbe868ee30d6726d
Author: Matúš Kukan <matus.kukan at collabora.com>
Date:   Tue May 13 18:50:00 2014 +0200

    loplugin:unreffun
    
    Change-Id: Ifd544db272652e1e9c45093291ab7f8ae3dd53a0

diff --git a/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx b/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
index 20d8c8a..a4b5dd5 100644
--- a/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
+++ b/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
@@ -26,16 +26,6 @@ using namespace http_dav_ucp;
 using namespace ::com::sun::star;
 
 
-
-struct UCBDeadPropertyValueParseContext
-{
-    OUString * pType;
-    OUString * pValue;
-
-    UCBDeadPropertyValueParseContext() : pType( 0 ), pValue( 0 ) {}
-    ~UCBDeadPropertyValueParseContext() { delete pType; delete pValue; }
-};
-
 // static
 const OUString UCBDeadPropertyValue::aTypeString
     = OUString( "string" );
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index a5cef39..73c7b1f 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -84,6 +84,7 @@ using namespace vcl_sal;
 #define SALCOLOR_WHITE      MAKE_SALCOLOR( 0xFF, 0xFF, 0xFF )
 #define SALCOLOR_BLACK      MAKE_SALCOLOR( 0x00, 0x00, 0x00 )
 
+#ifdef DBG_UTIL
 inline const char *Null( const char *p ) { return p ? p : ""; }
 inline const char *GetEnv( const char *p ) { return Null( getenv( p ) ); }
 inline const char *KeyStr( KeySym n ) { return Null( XKeysymToString( n ) ); }
@@ -93,6 +94,7 @@ inline const char *GetAtomName( Display *d, Atom a )
 
 inline double Hypothenuse( long w, long h )
 { return sqrt( (double)((w*w)+(h*h)) ); }
+#endif
 
 inline int ColorDiff( int r, int g, int b )
 { return (r*r)+(g*g)+(b*b); }
commit 95bb3305ca1ebfdd99a201d1d3234c820268af19
Author: Matúš Kukan <matus.kukan at collabora.com>
Date:   Tue May 13 19:48:37 2014 +0200

    loplugin:literaltoboolconversion
    
    Change-Id: I7457e47866bd327cfc32a0b2d43ebd04c3c68dbc

diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index bf062bf..b94b412 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -452,7 +452,7 @@ public:
     void EndCrsrMove( const bool bIdleEnd = false );
 #else
     void SttCrsrMove() { ++m_nCrsrMove; StartAction(); }
-    void EndCrsrMove( const bool bIdleEnd = sal_False )
+    void EndCrsrMove( const bool bIdleEnd = false )
             { EndAction( bIdleEnd ); --m_nCrsrMove; }
 #endif
 


More information about the Libreoffice-commits mailing list