summaryrefslogtreecommitdiff
path: root/sw/source/core/undo
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 13:21:51 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-19 01:33:36 +0100
commit695280feb90729fde1a7ecf1c409ae16f8281a46 (patch)
tree5591cb26f9546599b573ba49427b13bc5332b86f /sw/source/core/undo
parenta930f12c30f31d306ba60c5344cd8308d9fa4ee1 (diff)
tdf#123936 Formatting files in module sw with clang-format
Change-Id: I6243bc95129bf81a124d006ce0fc1aa1b5f618bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105718 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Jenkins
Diffstat (limited to 'sw/source/core/undo')
-rw-r--r--sw/source/core/undo/SwRewriter.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/sw/source/core/undo/SwRewriter.cxx b/sw/source/core/undo/SwRewriter.cxx
index 05566a1bd2f3..b35a31a912b5 100644
--- a/sw/source/core/undo/SwRewriter.cxx
+++ b/sw/source/core/undo/SwRewriter.cxx
@@ -22,17 +22,15 @@
using namespace std;
-SwRewriter::SwRewriter()
-{
-}
+SwRewriter::SwRewriter() {}
-void SwRewriter::AddRule(SwUndoArg eWhat, const OUString & rWith)
+void SwRewriter::AddRule(SwUndoArg eWhat, const OUString& rWith)
{
SwRewriteRule aRule(eWhat, rWith);
- vector<SwRewriteRule>::iterator aIt = find_if(
- mRules.begin(), mRules.end(),
- [&aRule](SwRewriteRule const & a) { return a.first == aRule.first; });
+ vector<SwRewriteRule>::iterator aIt
+ = find_if(mRules.begin(), mRules.end(),
+ [&aRule](SwRewriteRule const& a) { return a.first == aRule.first; });
if (aIt != mRules.end())
*aIt = aRule;
@@ -40,7 +38,7 @@ void SwRewriter::AddRule(SwUndoArg eWhat, const OUString & rWith)
mRules.push_back(aRule);
}
-OUString SwRewriter::Apply(const OUString & rStr) const
+OUString SwRewriter::Apply(const OUString& rStr) const
{
OUString aResult = rStr;