diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 09:51:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 14:48:50 +0100 |
commit | 33a3368ff513c8996c5eee38c5a64b42a1ffea30 (patch) | |
tree | 0b8a23b1f17a31bb061c33289e0add9583727ecc /svx | |
parent | 10a17fe72998a951fb4fca9da4467df84700b0a2 (diff) |
coverity#1242909 Unused value and const things up
Change-Id: Ib98a81a04f721917ee3c1fdd19d23a37c5d2c481
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/items/numfmtsh.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx index 138d1050b13f..e8718fea2fca 100644 --- a/svx/source/items/numfmtsh.cxx +++ b/svx/source/items/numfmtsh.cxx @@ -1149,11 +1149,8 @@ bool SvxNumberFormatShell::IsAdded_Impl( size_t nKey ) return GetAdded_Impl( nKey ) != aAddList.end(); } - // Konvertierungs-Routinen: - - -void SvxNumberFormatShell::PosToCategory_Impl( sal_uInt16 nPos, short& rCategory ) +void SvxNumberFormatShell::PosToCategory_Impl(sal_uInt16 nPos, short& rCategory) const { // Kategorie ::com::sun::star::form-Positionen abbilden (->Resource) switch ( nPos ) @@ -1173,9 +1170,7 @@ void SvxNumberFormatShell::PosToCategory_Impl( sal_uInt16 nPos, short& rCategory } } - - -void SvxNumberFormatShell::CategoryToPos_Impl( short nCategory, sal_uInt16& rPos ) +void SvxNumberFormatShell::CategoryToPos_Impl(short nCategory, sal_uInt16& rPos) const { // Kategorie auf ::com::sun::star::form-Positionen abbilden (->Resource) switch ( nCategory ) @@ -1255,7 +1250,7 @@ OUString SvxNumberFormatShell::GetComment4Entry(short nEntry) * Input: Nummer des Eintrags * Output: Kategorie- Nummer */ -short SvxNumberFormatShell::GetCategory4Entry(short nEntry) +short SvxNumberFormatShell::GetCategory4Entry(short nEntry) const { if(nEntry<0) return 0; if( static_cast<size_t>(nEntry) < aCurEntryList.size() ) |