summaryrefslogtreecommitdiff
path: root/sd/source/ui/inc/TemplateScanner.hxx
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 13:14:09 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-22 01:56:52 +0100
commit1e17165f6643afe583bb97a40fb25ecb7bab24d9 (patch)
tree7689985f76e4f50741319ab770d35a194169ffca /sd/source/ui/inc/TemplateScanner.hxx
parenta9bce41c64bda648be2609a0dc4aea728fa8ec77 (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/inc/TemplateScanner.hxx')
-rw-r--r--sd/source/ui/inc/TemplateScanner.hxx33
1 files changed, 22 insertions, 11 deletions
diff --git a/sd/source/ui/inc/TemplateScanner.hxx b/sd/source/ui/inc/TemplateScanner.hxx
index 3a8d2488b4fd..02db64fbdedf 100644
--- a/sd/source/ui/inc/TemplateScanner.hxx
+++ b/sd/source/ui/inc/TemplateScanner.hxx
@@ -28,22 +28,29 @@
#include <memory>
#include <vector>
-namespace com::sun::star::ucb {
- class XContent;
- class XCommandEnvironment;
+namespace com::sun::star::ucb
+{
+class XContent;
+class XCommandEnvironment;
}
-namespace com::sun::star::sdbc { class XResultSet; }
-
-namespace sd {
+namespace com::sun::star::sdbc
+{
+class XResultSet;
+}
+namespace sd
+{
/** Representation of a template or layout file.
*/
class TemplateEntry
{
public:
- TemplateEntry (const OUString& rsTitle, const OUString& rsPath)
- : msTitle(rsTitle), msPath(rsPath) {}
+ TemplateEntry(const OUString& rsTitle, const OUString& rsPath)
+ : msTitle(rsTitle)
+ , msPath(rsPath)
+ {
+ }
OUString msTitle;
OUString msPath;
@@ -86,13 +93,17 @@ public:
<nullptr/> is returned either before the template scanning is
started or after it has ended.
*/
- const TemplateEntry* GetLastAddedEntry() const { return mpTemplateEntries.empty()?nullptr:mpTemplateEntries.back().get();}
+ const TemplateEntry* GetLastAddedEntry() const
+ {
+ return mpTemplateEntries.empty() ? nullptr : mpTemplateEntries.back().get();
+ }
private:
/** The current state determines which step will be executed next by
RunNextStep().
*/
- enum State {
+ enum State
+ {
INITIALIZE_SCANNING,
INITIALIZE_FOLDER_SCANNING,
GATHER_FOLDER_LIST,
@@ -105,7 +116,7 @@ private:
State meState;
::ucbhelper::Content maFolderContent;
- ::std::vector< std::unique_ptr<TemplateEntry> > mpTemplateEntries;
+ ::std::vector<std::unique_ptr<TemplateEntry>> mpTemplateEntries;
/** The folders that are collected by GatherFolderList().
*/