summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 16:04:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-25 17:19:36 +0200
commita006f60b6ae22db6acb57d06167a3c6fd8bc6f1b (patch)
tree707809080a1fbb95c101de7afe3233f85f0f7bcb /idlc
parentd116894b26f538793a0d5dc5847efd2fb53e7acb (diff)
loplugin:oncevar in helpcompiler..jvmfwk
Change-Id: Ia9b20a8ca95684cbeb21e3425972c43ba50df3cd Reviewed-on: https://gerrit.libreoffice.org/39187 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astoperation.cxx3
-rw-r--r--idlc/source/idlccompile.cxx4
2 files changed, 3 insertions, 4 deletions
diff --git a/idlc/source/astoperation.cxx b/idlc/source/astoperation.cxx
index e88656f25db5..3a9a39adb5e5 100644
--- a/idlc/source/astoperation.cxx
+++ b/idlc/source/astoperation.cxx
@@ -42,7 +42,6 @@ bool AstOperation::dumpBlob(typereg::Writer & rBlob, sal_uInt16 index)
{
sal_uInt16 nParam = getNodeCount(NT_parameter);
sal_uInt16 nExcep = (sal_uInt16)m_exceptions.size();
- RTMethodMode methodMode = RTMethodMode::TWOWAY;
OUString returnTypeName;
if (m_pReturnType == nullptr) {
@@ -52,7 +51,7 @@ bool AstOperation::dumpBlob(typereg::Writer & rBlob, sal_uInt16 index)
m_pReturnType->getRelativName(), RTL_TEXTENCODING_UTF8);
}
rBlob.setMethodData(
- index, getDocumentation(), methodMode,
+ index, getDocumentation(), RTMethodMode::TWOWAY,
OStringToOUString(getLocalName(), RTL_TEXTENCODING_UTF8),
returnTypeName, nParam, nExcep);
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx
index 5066752b3599..03b9a517f9e3 100644
--- a/idlc/source/idlccompile.cxx
+++ b/idlc/source/idlccompile.cxx
@@ -180,8 +180,8 @@ bool copyFile(const OString* source, const OString& target)
return false;
}
- size_t totalSize = 512;
- char pBuffer[513];
+ size_t const totalSize = 512;
+ char pBuffer[totalSize + 1];
while ( !feof(pSource) )
{