[Libreoffice-commits] core.git: writerperfect/source
Stephan Bergmann
sbergman at redhat.com
Tue May 19 00:28:24 PDT 2015
writerperfect/source/common/WPFTEncodingDialog.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 685e30c3bdd010d09ac585bd621dd17149e5cb77
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue May 19 09:27:49 2015 +0200
loplugin:cstylecast
Change-Id: I0ef11bcb30bcfbecf5afe5c4c38391acc7b72968
diff --git a/writerperfect/source/common/WPFTEncodingDialog.cxx b/writerperfect/source/common/WPFTEncodingDialog.cxx
index 4e04304..fa0be53 100644
--- a/writerperfect/source/common/WPFTEncodingDialog.cxx
+++ b/writerperfect/source/common/WPFTEncodingDialog.cxx
@@ -114,7 +114,7 @@ void EncodingImplementation::selectEncoding(ListBox *box, const OUString *encodi
OUString EncodingImplementation::getEncoding(ListBox *box)
{
- sal_IntPtr pos=(sal_IntPtr) box->GetSelectEntryData();
+ sal_IntPtr pos = reinterpret_cast<sal_IntPtr>(box->GetSelectEntryData());
if (pos<0||pos>=numEncodings())
return OUString();
return s_encodings[2*pos];
More information about the Libreoffice-commits
mailing list