summaryrefslogtreecommitdiff
path: root/jvmfwk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:21:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:21:12 +0100
commit9c9277a7711a4842527355a1d665fe3f8c82bc82 (patch)
treeb179e52d6537df026edaa1c6c5136d0748b0eb36 /jvmfwk
parent95adb247b62b8e4368fa473af3f0e01c420d4f6b (diff)
More loplugin:cstylecast: jvmfwk
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: Ifb4b7fa5d2a9111a63da241f75b59528e51f765c
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/util.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index 224874b5c153..fd6680ae07e1 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
@@ -377,12 +377,12 @@ void AsynchReader::execute()
std::unique_ptr<sal_Char[]> arTmp( new sal_Char[m_nDataSize]);
memcpy(arTmp.get(), m_arData.get(), m_nDataSize);
//Enlarge m_arData to hold the newly read data
- m_arData.reset(new sal_Char[(size_t)(m_nDataSize + nRead)]);
+ m_arData.reset(new sal_Char[static_cast<size_t>(m_nDataSize + nRead)]);
//Copy back the data that was already in m_arData
memcpy(m_arData.get(), arTmp.get(), m_nDataSize);
//Add the newly read data to m_arData
- memcpy(m_arData.get() + m_nDataSize, aBuffer, (size_t) nRead);
- m_nDataSize += (size_t) nRead;
+ memcpy(m_arData.get() + m_nDataSize, aBuffer, static_cast<size_t>(nRead));
+ m_nDataSize += static_cast<size_t>(nRead);
}
}
}
@@ -564,7 +564,7 @@ bool decodeOutput(const OString& s, OUString* out)
if (aToken[i] < '0' || aToken[i] > '9')
return false;
}
- sal_Unicode value = (sal_Unicode)(aToken.toInt32());
+ sal_Unicode value = static_cast<sal_Unicode>(aToken.toInt32());
buff.append(value);
}
} while (nIndex >= 0);