From 054738256c37b007a371249cbbe868ee30d6726d Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Tue, 13 May 2014 18:50:00 +0200 Subject: loplugin:unreffun Change-Id: Ifd544db272652e1e9c45093291ab7f8ae3dd53a0 --- vcl/unx/generic/app/saldisp.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vcl/unx') diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index a5cef39d2b79..73c7b1fd4c5e 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); } -- cgit