diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-22 09:59:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-22 09:59:46 +0200 |
commit | 24600dcf3118cb01d57c31518d36be870f73e79c (patch) | |
tree | a52948f34190ca54071d7d457b91471fb1703ad7 /writerperfect | |
parent | 83eb114394879cbfd073322a51c47d02553c1fcf (diff) |
loplugin:constantfunction
Change-Id: I7cb5b0c2cf9ade557173ca596ea5d42d853ff448
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/common/WPFTEncodingDialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/writerperfect/source/common/WPFTEncodingDialog.cxx b/writerperfect/source/common/WPFTEncodingDialog.cxx index de521c61e881..18b7b0473853 100644 --- a/writerperfect/source/common/WPFTEncodingDialog.cxx +++ b/writerperfect/source/common/WPFTEncodingDialog.cxx @@ -30,7 +30,7 @@ struct EncodingImplementation static OUString const(s_encodings[]); - static int numEncodings(); + static inline int numEncodings(); static void insertEncodings(ListBox *box); static void selectEncoding(ListBox *box, const OUString &encoding); static OUString getEncoding(ListBox *box); @@ -84,7 +84,7 @@ OUString const(EncodingImplementation::s_encodings[])= "CP1252", "Western Europe (Windows-1252/WinLatin 1)" }; -int EncodingImplementation::numEncodings() +inline int EncodingImplementation::numEncodings() { return int(sizeof(s_encodings)/(2*sizeof(const OUString *))); } |