summaryrefslogtreecommitdiff
path: root/framework/source/helper/statusindicator.cxx
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 12:58:48 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-13 15:18:12 +0100
commit49494bb703107835f83671d9272a0326feec8bb4 (patch)
tree4908e10aa2d8b984a6dbcf1ade1d9a93c268b5c3 /framework/source/helper/statusindicator.cxx
parent951764106e2d82fc59dcf39e14bc17838856a00c (diff)
tdf#123936 Formatting files in module framework with clang-format
Change-Id: I8210a1d4bb51519f59265f370f5e8bab8a3c4179 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105674 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'framework/source/helper/statusindicator.cxx')
-rw-r--r--framework/source/helper/statusindicator.cxx27
1 files changed, 12 insertions, 15 deletions
diff --git a/framework/source/helper/statusindicator.cxx b/framework/source/helper/statusindicator.cxx
index 25d67694c5df..2073b8e68d9d 100644
--- a/framework/source/helper/statusindicator.cxx
+++ b/framework/source/helper/statusindicator.cxx
@@ -20,8 +20,8 @@
#include <comphelper/lok.hxx>
#include <helper/statusindicator.hxx>
-namespace framework{
-
+namespace framework
+{
StatusIndicator::StatusIndicator(StatusIndicatorFactory* pFactory)
: m_xFactory(pFactory)
, m_nRange(100)
@@ -29,12 +29,9 @@ StatusIndicator::StatusIndicator(StatusIndicatorFactory* pFactory)
{
}
-StatusIndicator::~StatusIndicator()
-{
-}
+StatusIndicator::~StatusIndicator() {}
-void SAL_CALL StatusIndicator::start(const OUString& sText ,
- sal_Int32 nRange)
+void SAL_CALL StatusIndicator::start(const OUString& sText, sal_Int32 nRange)
{
if (comphelper::LibreOfficeKit::isActive())
{
@@ -44,14 +41,14 @@ void SAL_CALL StatusIndicator::start(const OUString& sText ,
comphelper::LibreOfficeKit::statusIndicatorStart();
}
#if !defined(IOS) && !defined(ANDROID)
- css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory(m_xFactory);
+ css::uno::Reference<css::task::XStatusIndicatorFactory> xFactory(m_xFactory);
if (xFactory.is())
{
StatusIndicatorFactory* pFactory = static_cast<StatusIndicatorFactory*>(xFactory.get());
pFactory->start(this, sText, nRange);
}
#else
- (void) sText;
+ (void)sText;
#endif
}
@@ -62,7 +59,7 @@ void SAL_CALL StatusIndicator::end()
comphelper::LibreOfficeKit::statusIndicatorFinish();
}
#if !defined(IOS) && !defined(ANDROID)
- css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory(m_xFactory);
+ css::uno::Reference<css::task::XStatusIndicatorFactory> xFactory(m_xFactory);
if (xFactory.is())
{
StatusIndicatorFactory* pFactory = static_cast<StatusIndicatorFactory*>(xFactory.get());
@@ -76,7 +73,7 @@ void SAL_CALL StatusIndicator::reset()
if (comphelper::LibreOfficeKit::isActive())
return;
#if !defined(IOS) && !defined(ANDROID)
- css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory(m_xFactory);
+ css::uno::Reference<css::task::XStatusIndicatorFactory> xFactory(m_xFactory);
if (xFactory.is())
{
StatusIndicatorFactory* pFactory = static_cast<StatusIndicatorFactory*>(xFactory.get());
@@ -90,14 +87,14 @@ void SAL_CALL StatusIndicator::setText(const OUString& sText)
if (comphelper::LibreOfficeKit::isActive())
return;
#if !defined(IOS) && !defined(ANDROID)
- css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory(m_xFactory);
+ css::uno::Reference<css::task::XStatusIndicatorFactory> xFactory(m_xFactory);
if (xFactory.is())
{
StatusIndicatorFactory* pFactory = static_cast<StatusIndicatorFactory*>(xFactory.get());
pFactory->setText(this, sText);
}
#else
- (void) sText;
+ (void)sText;
#endif
}
@@ -107,7 +104,7 @@ void SAL_CALL StatusIndicator::setValue(sal_Int32 nValue)
{
if (m_nRange > 0)
{
- int nPercent = (100*nValue)/m_nRange;
+ int nPercent = (100 * nValue) / m_nRange;
if (nPercent >= m_nLastCallbackPercent)
{
comphelper::LibreOfficeKit::statusIndicatorSetValue(nPercent);
@@ -117,7 +114,7 @@ void SAL_CALL StatusIndicator::setValue(sal_Int32 nValue)
return;
}
#if !defined(IOS) && !defined(ANDROID)
- css::uno::Reference< css::task::XStatusIndicatorFactory > xFactory(m_xFactory);
+ css::uno::Reference<css::task::XStatusIndicatorFactory> xFactory(m_xFactory);
if (xFactory.is())
{
StatusIndicatorFactory* pFactory = static_cast<StatusIndicatorFactory*>(xFactory.get());