summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-05-13 18:50:00 +0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-05-13 20:02:58 +0200
commit054738256c37b007a371249cbbe868ee30d6726d (patch)
tree198655a9f6063d75ff7a2a89425b3bd3fc82ed67 /vcl/unx
parent95bb3305ca1ebfdd99a201d1d3234c820268af19 (diff)
loplugin:unreffun
Change-Id: Ifd544db272652e1e9c45093291ab7f8ae3dd53a0
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/app/saldisp.cxx2
1 files changed, 2 insertions, 0 deletions
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); }