summaryrefslogtreecommitdiff
path: root/sdext/source/minimizer/pppoptimizertoken.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:33 +0100
commitb271fb5ba1a8f7da2120d7037de087b02eb16c91 (patch)
tree74f5c2f1a419311097eaa9c474f3e1a69fed7efe /sdext/source/minimizer/pppoptimizertoken.cxx
parent48db069fd7341ad8128d0e9a5fbcc5b092fe9860 (diff)
More loplugin:cstylecast: sdext
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: Ie9eca6a78912a62f5a46ecacb1da052621c79ea4
Diffstat (limited to 'sdext/source/minimizer/pppoptimizertoken.cxx')
-rw-r--r--sdext/source/minimizer/pppoptimizertoken.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdext/source/minimizer/pppoptimizertoken.cxx b/sdext/source/minimizer/pppoptimizertoken.cxx
index d99c49bfb15b..79303918e775 100644
--- a/sdext/source/minimizer/pppoptimizertoken.cxx
+++ b/sdext/source/minimizer/pppoptimizertoken.cxx
@@ -175,7 +175,7 @@ PPPOptimizerTokenEnum TKGet( const OUString& rToken )
int i, nLen = rToken.getLength();
std::unique_ptr<char[]> pBuf(new char[ nLen + 1 ]);
for ( i = 0; i < nLen; i++ )
- pBuf[ i ] = (char)rToken[ i ];
+ pBuf[ i ] = static_cast<char>(rToken[ i ]);
pBuf[ i ] = 0;
TypeNameHashMap::iterator aHashIter( pHashMap->find( pBuf.get() ) );
if ( aHashIter != pHashMap->end() )