summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2017-04-17 18:40:21 +0300
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-04-18 13:05:05 +0200
commit81291d622394682be44b80a87a856c0f891809d4 (patch)
tree962ca37ab68bbdb3707217991029db6e6eaca940 /vcl/source
parented900113d091431f89ccc312b55a6955ca341b9e (diff)
cppcheck: useInitializationList
Change-Id: Iee4db89fe3bd256da0b7ff0f40a3c4789666c525 Reviewed-on: https://gerrit.libreoffice.org/36633 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/edit.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 77e01f8a5462..c20ef78cf3fa 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -127,13 +127,13 @@ struct Impl_IMEInfos
};
Impl_IMEInfos::Impl_IMEInfos(sal_Int32 nP, const OUString& rOldTextAfterStartPos)
- : aOldTextAfterStartPos(rOldTextAfterStartPos)
+ : aOldTextAfterStartPos(rOldTextAfterStartPos),
+ pAttribs(nullptr),
+ nPos(nP),
+ nLen(0),
+ bCursor(true),
+ bWasCursorOverwrite(false)
{
- nPos = nP;
- nLen = 0;
- bCursor = true;
- pAttribs = nullptr;
- bWasCursorOverwrite = false;
}
void Impl_IMEInfos::CopyAttribs(const ExtTextInputAttr* pA, sal_Int32 nL)