diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:14:09 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-22 01:56:52 +0100 |
commit | 1e17165f6643afe583bb97a40fb25ecb7bab24d9 (patch) | |
tree | 7689985f76e4f50741319ab770d35a194169ffca /sd/source/ui/func | |
parent | a9bce41c64bda648be2609a0dc4aea728fa8ec77 (diff) |
tdf#123936 Formatting files in module sd with clang-format
Change-Id: Ieb02e9ae91123bcf1decc141a43fe7e985bf47f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105703
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
Diffstat (limited to 'sd/source/ui/func')
-rw-r--r-- | sd/source/ui/func/sdundogr.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sd/source/ui/func/sdundogr.cxx b/sd/source/ui/func/sdundogr.cxx index 497c27c8d6c7..a2e97386d57b 100644 --- a/sd/source/ui/func/sdundogr.cxx +++ b/sd/source/ui/func/sdundogr.cxx @@ -22,17 +22,17 @@ SdUndoGroup::~SdUndoGroup() = default; -bool SdUndoGroup::Merge( SfxUndoAction* pNextAction ) +bool SdUndoGroup::Merge(SfxUndoAction* pNextAction) { bool bRet = false; - if( auto pSdUndoAction = dynamic_cast<SdUndoAction *>( pNextAction ) ) + if (auto pSdUndoAction = dynamic_cast<SdUndoAction*>(pNextAction)) { SdUndoAction* pClone = pSdUndoAction->Clone(); - if( pClone ) + if (pClone) { - AddAction( pClone ); + AddAction(pClone); bRet = true; } } @@ -50,7 +50,6 @@ void SdUndoGroup::Undo() { aCtn[nAction]->Undo(); } - } void SdUndoGroup::Redo() @@ -60,12 +59,8 @@ void SdUndoGroup::Redo() { aCtn[nAction]->Redo(); } - } -void SdUndoGroup::AddAction(SdUndoAction* pAction) -{ - aCtn.emplace_back(pAction); -} +void SdUndoGroup::AddAction(SdUndoAction* pAction) { aCtn.emplace_back(pAction); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |