diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:08:56 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-19 19:22:02 +0100 |
commit | c4ab5393e1c2332d92ea6672d3c8ffc3a6220afa (patch) | |
tree | 322f3de17afd5fccc26f3b2f9df56714b97cfc65 /oox/source/ppt | |
parent | de80fdc2060abe5b171bcef72944dd7b914ccd33 (diff) |
tdf#123936 Formatting files in module oox with clang-format
Change-Id: Ie061189450e0f9004ca503bb28164885812f2acc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105694
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'oox/source/ppt')
-rw-r--r-- | oox/source/ppt/animationtypes.cxx | 13 | ||||
-rw-r--r-- | oox/source/ppt/animationtypes.hxx | 9 | ||||
-rw-r--r-- | oox/source/ppt/comments.cxx | 18 |
3 files changed, 18 insertions, 22 deletions
diff --git a/oox/source/ppt/animationtypes.cxx b/oox/source/ppt/animationtypes.cxx index c3fa2b53ebd0..c6b49b3e8703 100644 --- a/oox/source/ppt/animationtypes.cxx +++ b/oox/source/ppt/animationtypes.cxx @@ -27,13 +27,13 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::animations; using namespace ::com::sun::star::xml::sax; -namespace oox::ppt { - +namespace oox::ppt +{ // ST_TLTime -Any GetTime( const OUString & val ) +Any GetTime(const OUString& val) { Any aDuration; - if( val == "indefinite" ) + if (val == "indefinite") { aDuration <<= Timing_INDEFINITE; } @@ -45,10 +45,10 @@ Any GetTime( const OUString & val ) } // ST_TLTimeAnimateValueTime -Any GetTimeAnimateValueTime( const OUString & val ) +Any GetTimeAnimateValueTime(const OUString& val) { Any aPercent; - if( val == "indefinite" ) + if (val == "indefinite") { aPercent <<= Timing_INDEFINITE; } @@ -58,7 +58,6 @@ Any GetTimeAnimateValueTime( const OUString & val ) } return aPercent; } - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/oox/source/ppt/animationtypes.hxx b/oox/source/ppt/animationtypes.hxx index 3861456b3e51..92652978fd44 100644 --- a/oox/source/ppt/animationtypes.hxx +++ b/oox/source/ppt/animationtypes.hxx @@ -22,13 +22,12 @@ #include <com/sun/star/uno/Any.hxx> -namespace oox::ppt { - +namespace oox::ppt +{ // ST_TLTime -css::uno::Any GetTime( const OUString & val ); +css::uno::Any GetTime(const OUString& val); // ST_TLTimeAnimateValueTime -css::uno::Any GetTimeAnimateValueTime( const OUString & val ); - +css::uno::Any GetTimeAnimateValueTime(const OUString& val); } #endif diff --git a/oox/source/ppt/comments.cxx b/oox/source/ppt/comments.cxx index 810ac57eb755..78dc5295497f 100644 --- a/oox/source/ppt/comments.cxx +++ b/oox/source/ppt/comments.cxx @@ -11,8 +11,8 @@ #include <com/sun/star/lang/IllegalArgumentException.hpp> #include <rtl/math.hxx> -namespace oox::ppt { - +namespace oox::ppt +{ void CommentAuthorList::setValues(const CommentAuthorList& list) { for (auto const& author : list.cmAuthorLst) @@ -29,7 +29,7 @@ void CommentAuthorList::setValues(const CommentAuthorList& list) } //DateTime is saved as : 2013-01-10T15:53:26.000 -void Comment::setDateTime (const OUString& sDateTime) +void Comment::setDateTime(const OUString& sDateTime) { sal_Int32 nIdx{ 0 }; aDateTime.Year = sDateTime.getToken(0, '-', nIdx).toInt32(); @@ -61,26 +61,24 @@ void Comment::setDateTime (const OUString& sDateTime) // if overflow goes into date, I give up } -OUString Comment::getAuthor ( const CommentAuthorList& list ) +OUString Comment::getAuthor(const CommentAuthorList& list) { const sal_Int32 nId = authorId.toInt32(); for (auto const& author : list.cmAuthorLst) { - if(author.id.toInt32() == nId) + if (author.id.toInt32() == nId) return author.name; } return "Anonymous"; } -const Comment& CommentList::getCommentAtIndex (int index) +const Comment& CommentList::getCommentAtIndex(int index) { - if(index >= static_cast<int>(cmLst.size()) || index < 0) + if (index >= static_cast<int>(cmLst.size()) || index < 0) throw css::lang::IllegalArgumentException(); - return cmLst.at(index) -; + return cmLst.at(index); } - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |