diff options
-rw-r--r-- | vcl/unx/gtk/a11y/atktextattributes.cxx | 7 |
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 |