summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-21 13:13:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-21 14:38:37 +0000
commitb53dbf77dbbd0c65870877906f061e94e1ac5537 (patch)
tree73dd2f47cb4da0b758e58461ad158836c872748d /vcl/unx
parent85bafd7abedbfc642309f0af850aede68000dba1 (diff)
coverity#735563 Logically dead code
Change-Id: Idebbefe8c3d18df559fe4d9635dc407f51ec9f1d
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/a11y/atktextattributes.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/unx/gtk/a11y/atktextattributes.cxx b/vcl/unx/gtk/a11y/atktextattributes.cxx
index 243ea1870bb1..54e8f8f0a542 100644
--- a/vcl/unx/gtk/a11y/atktextattributes.cxx
+++ b/vcl/unx/gtk/a11y/atktextattributes.cxx
@@ -638,7 +638,7 @@ String2Scale( uno::Any& rAny, const gchar * value )
static gchar *
CaseMap2String( const uno::Any& rAny )
{
- const gchar * value = NULL;
+ const gchar * value;
switch( rAny.get<short>() )
{
@@ -651,10 +651,7 @@ CaseMap2String( const uno::Any& rAny )
break;
}
- if( value )
- return g_strdup( value );
-
- return NULL;
+ return g_strdup(value);
}
static bool