diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-24 10:49:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-24 10:51:22 +0200 |
commit | 858e455634ebfff8ef7b65a9c97d3bc8240cd094 (patch) | |
tree | 688dd5dbe73ee53ef4b84124632e045045b404d1 /starmath/source | |
parent | a6df3c0babf409d8fc0bf52efd9c2fa74a95998e (diff) |
loplugin:constantfunction: various
Change-Id: I6eddda9f4b31c7ce413c328b6a857a81bd222eed
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/dialog.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index a656db854430..c4a400c6b427 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -63,7 +63,7 @@ class SmFontStyles public: SmFontStyles(); - sal_uInt16 GetCount() const { return 4; } + static sal_uInt16 GetCount() { return 4; } const OUString& GetStyleName( const vcl::Font &rFont ) const; const OUString& GetStyleName( sal_uInt16 nIdx ) const; }; @@ -133,7 +133,7 @@ void SetFontStyle(const OUString &rStyleName, vcl::Font &rFont) { sal_uInt16 i; const SmFontStyles &rStyles = GetFontStyles(); - for (i = 0; i < rStyles.GetCount(); ++i) + for (i = 0; i < SmFontStyles::GetCount(); ++i) if (rStyleName == rStyles.GetStyleName(i)) break; #if OSL_DEBUG_LEVEL > 1 @@ -1688,7 +1688,7 @@ void SmSymDefineDialog::FillStyles(bool bDeleteText) { // use own StyleNames const SmFontStyles &rStyles = GetFontStyles(); - for (sal_uInt16 i = 0; i < rStyles.GetCount(); i++) + for (sal_uInt16 i = 0; i < SmFontStyles::GetCount(); i++) pStyles->InsertEntry( rStyles.GetStyleName(i) ); #if OSL_DEBUG_LEVEL > 1 |