summaryrefslogtreecommitdiffstats
path: root/connectivity/source/drivers/firebird/ResultSetMetaData.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:27:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:27:27 +0100
commitf8558f844674c7ba541699708e95f509026c9407 (patch)
treeb402baade1bf3b1bfe1cf89b3cacb275c020e44b /connectivity/source/drivers/firebird/ResultSetMetaData.cxx
parentMore loplugin:cstylecast: cppcanvas (diff)
downloadcore-f8558f844674c7ba541699708e95f509026c9407.tar.gz
core-f8558f844674c7ba541699708e95f509026c9407.zip
More loplugin:cstylecast: connectivity
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: Idbefb16acae20ab137497e78c9bc5dc5634c07fe
Diffstat (limited to 'connectivity/source/drivers/firebird/ResultSetMetaData.cxx')
-rw-r--r--connectivity/source/drivers/firebird/ResultSetMetaData.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/firebird/ResultSetMetaData.cxx b/connectivity/source/drivers/firebird/ResultSetMetaData.cxx
index b598846545de..877964630c4f 100644
--- a/connectivity/source/drivers/firebird/ResultSetMetaData.cxx
+++ b/connectivity/source/drivers/firebird/ResultSetMetaData.cxx
@@ -245,7 +245,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getPrecision(sal_Int32 column)
Reference<XRow> xRow ( xRes, UNO_QUERY);
if(xRes->next())
{
- return (sal_Int32) xRow->getShort(1);
+ return static_cast<sal_Int32>(xRow->getShort(1));
}
else
{