summaryrefslogtreecommitdiff
path: root/tools/source/inet
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:01 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:01 +0100
commit8456c2ba408b3bed160d3e5f050738301b225bd5 (patch)
treef5b4ba22b4c1e1ccfef3c5430b627ffd0bfc9ec7 /tools/source/inet
parent8af176d7776938249f6e59dee3ed4f5c05edbebc (diff)
More loplugin:cstylecast: tools
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: Ifb9ebc9623c8df14ea0d4c907001bd16c5b9ae59
Diffstat (limited to 'tools/source/inet')
-rw-r--r--tools/source/inet/inetmsg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx
index 82b23232441f..a3c3a88800a7 100644
--- a/tools/source/inet/inetmsg.cxx
+++ b/tools/source/inet/inetmsg.cxx
@@ -64,7 +64,7 @@ static sal_uInt16 ParseNumber(const OString& rStr, sal_Int32& nIndex)
OString aNum(rStr.copy(nIndex, (n - nIndex)));
nIndex = n;
- return (sal_uInt16)(aNum.toInt32());
+ return static_cast<sal_uInt16>(aNum.toInt32());
}
static sal_uInt16 ParseMonth(const OString& rStr, sal_Int32& nIndex)