[Libreoffice-commits] core.git: editeng/source vcl/source
Muhammet Kara
muhammet.kara at pardus.org.tr
Tue Apr 18 11:05:30 UTC 2017
editeng/source/editeng/impedit5.cxx | 16 ++++++++--------
vcl/source/control/edit.cxx | 12 ++++++------
2 files changed, 14 insertions(+), 14 deletions(-)
New commits:
commit 81291d622394682be44b80a87a856c0f891809d4
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
Date: Mon Apr 17 18:40:21 2017 +0300
cppcheck: useInitializationList
Change-Id: Iee4db89fe3bd256da0b7ff0f40a3c4789666c525
Reviewed-on: https://gerrit.libreoffice.org/36633
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx
index 83d60c75165c..9a91f087f960 100644
--- a/editeng/source/editeng/impedit5.cxx
+++ b/editeng/source/editeng/impedit5.cxx
@@ -817,14 +817,14 @@ void IdleFormattter::ForceTimeout()
}
ImplIMEInfos::ImplIMEInfos( const EditPaM& rPos, const OUString& rOldTextAfterStartPos )
- : aOldTextAfterStartPos( rOldTextAfterStartPos )
-{
- aPos = rPos;
- nLen = 0;
- bCursor = true;
- pAttribs = nullptr;
- bWasCursorOverwrite = false;
-}
+ : aOldTextAfterStartPos( rOldTextAfterStartPos ),
+ pAttribs(nullptr),
+ aPos(rPos),
+ nLen(0),
+ bCursor(true),
+ bWasCursorOverwrite(false)
+ {
+ }
ImplIMEInfos::~ImplIMEInfos()
{
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)
More information about the Libreoffice-commits
mailing list