Simplify SwFillCursorPos ctor using default initializers
Simplifies code, no functional changes. Change-Id: I433a3aa697d8bf3056d51894137f783821915970 Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/12051 Tested-by: Jenkins CPCI <releng@collaboraoffice.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> (cherry picked from commit ce897ee2f106bf890b8e3d431e0e34f48c9d9c65) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211046 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
committed by
Xisco Fauli
parent
121c5f332f
commit
1eca0c353a
+7
-8
@@ -36,16 +36,15 @@ enum class SwFillMode
|
||||
struct SwFillCursorPos
|
||||
{
|
||||
SwRect aCursor; ///< position and size of the ShadowCursor
|
||||
sal_uInt16 nParaCnt; ///< number of paragraphs to insert
|
||||
sal_uInt16 nTabCnt; ///< number of tabs respectively size of indentation
|
||||
sal_uInt16 nSpaceCnt; ///< number of spaces to insert
|
||||
sal_uInt16 nSpaceOnlyCnt; ///< number of spaces to insert ("only spaces, no tabs" mode)
|
||||
sal_uInt16 nColumnCnt; ///< number of necessary column breaks
|
||||
sal_Int16 eOrient; ///< paragraph alignment
|
||||
sal_uInt16 nParaCnt = 0; ///< number of paragraphs to insert
|
||||
sal_uInt16 nTabCnt = 0; ///< number of tabs respectively size of indentation
|
||||
sal_uInt16 nSpaceCnt = 0; ///< number of spaces to insert
|
||||
sal_uInt16 nSpaceOnlyCnt = 0; ///< number of spaces to insert ("only spaces, no tabs" mode)
|
||||
sal_uInt16 nColumnCnt = 0; ///< number of necessary column breaks
|
||||
sal_Int16 eOrient = css::text::HoriOrientation::NONE; ///< paragraph alignment
|
||||
SwFillMode eMode; ///< desired fill-up rule
|
||||
SwFillCursorPos( SwFillMode eMd ) :
|
||||
nParaCnt( 0 ), nTabCnt( 0 ), nSpaceCnt( 0 ), nSpaceOnlyCnt(0), nColumnCnt( 0 ),
|
||||
eOrient( css::text::HoriOrientation::NONE ), eMode( eMd )
|
||||
eMode(eMd)
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user