diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-02-21 16:54:13 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-21 16:54:39 +0000 |
commit | 0175037f98bb27e1b217121539655e561b84fe1e (patch) | |
tree | 764252e352ad33d301428dc1e39e5844cf1963af /svx | |
parent | fa9e867a342a37d84f02f7e801962761cc1d2b6f (diff) |
WaE: potentially uninitailized nMode
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 5965dd49b949..d5177806e50b 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -2255,14 +2255,15 @@ SvxColorExtToolBoxControl::SvxColorExtToolBoxControl( // The following commands are available at the various modules switch( nSlotId ) { - case SID_ATTR_CHAR_COLOR2 : - case SID_ATTR_CHAR_COLOR : + case SID_ATTR_CHAR_COLOR: + case SID_ATTR_CHAR_COLOR2: addStatusListener( OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CharColorExt" ))); nMode = TBX_UPDATER_MODE_CHAR_COLOR_NEW; break; - case SID_ATTR_CHAR_COLOR_BACKGROUND : - case SID_BACKGROUND_COLOR : + case SID_BACKGROUND_COLOR: + case SID_ATTR_CHAR_COLOR_BACKGROUND: + default: addStatusListener( OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CharBackgroundExt" ))); nMode = TBX_UPDATER_MODE_CHAR_COLOR_NEW; break; |