summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/dumpfilter.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-22 08:11:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-22 08:13:42 +0100
commite6c124ae3b4de78848344a172003de934e1cb163 (patch)
tree99bbb9c600af26b18842ef33fca9790685d55ccc /sw/source/core/layout/dumpfilter.cxx
parent08bdb40656898fc484f5200b63610a31369ddd87 (diff)
Some more loplugin:cstylecast: sw
note the two TODOs about suspicious casts Change-Id: I324fa05b30a5c8aa1d9e9a6d488a1e295226e788
Diffstat (limited to 'sw/source/core/layout/dumpfilter.cxx')
-rw-r--r--sw/source/core/layout/dumpfilter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/dumpfilter.cxx b/sw/source/core/layout/dumpfilter.cxx
index def75771e7c7..672bab301a69 100644
--- a/sw/source/core/layout/dumpfilter.cxx
+++ b/sw/source/core/layout/dumpfilter.cxx
@@ -55,7 +55,7 @@ namespace
// Don't output the terminating \0 to the xml or the file will be invalid
uno::Sequence< sal_Int8 > seq( nLen );
- strncpy( ( char * ) seq.getArray() , sBuffer, nLen );
+ strncpy( reinterpret_cast<char *>(seq.getArray()), sBuffer, nLen );
xOut->writeBytes( seq );
}
catch (const uno::Exception&)