summaryrefslogtreecommitdiff
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 12:50:27 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-22 01:57:32 +0100
commit79b6055acd1ea27a9f054e6980abbe2024cdc4a2 (patch)
tree1f441f303313ef5500e4b24a596c33640837b787 /chart2/source/tools
parent315f270d2db7541e9400852b070afb30f371f644 (diff)
tdf#123936 Formatting files in module chart2 with clang-format
Change-Id: Ie4dea73190040e5716fe531cf35fae20d7e175db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105650 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/ChartViewHelper.cxx18
-rw-r--r--chart2/source/tools/PopupRequest.cxx8
-rw-r--r--chart2/source/tools/TrueGuard.cxx10
3 files changed, 14 insertions, 22 deletions
diff --git a/chart2/source/tools/ChartViewHelper.cxx b/chart2/source/tools/ChartViewHelper.cxx
index f11ea7421c5a..8caaeddb1e94 100644
--- a/chart2/source/tools/ChartViewHelper.cxx
+++ b/chart2/source/tools/ChartViewHelper.cxx
@@ -30,23 +30,23 @@ namespace chart
using namespace ::com::sun::star;
using ::com::sun::star::uno::Reference;
-void ChartViewHelper::setViewToDirtyState( const uno::Reference< frame::XModel >& xChartModel )
+void ChartViewHelper::setViewToDirtyState(const uno::Reference<frame::XModel>& xChartModel)
{
try
{
- uno::Reference< lang::XMultiServiceFactory > xFact( xChartModel, uno::UNO_QUERY );
- if( xFact.is() )
+ uno::Reference<lang::XMultiServiceFactory> xFact(xChartModel, uno::UNO_QUERY);
+ if (xFact.is())
{
- Reference< util::XModifyListener > xModifyListener(
- xFact->createInstance( CHART_VIEW_SERVICE_NAME ), uno::UNO_QUERY );
- if( xModifyListener.is() )
+ Reference<util::XModifyListener> xModifyListener(
+ xFact->createInstance(CHART_VIEW_SERVICE_NAME), uno::UNO_QUERY);
+ if (xModifyListener.is())
{
- lang::EventObject aEvent( xChartModel );
- xModifyListener->modified( aEvent );
+ lang::EventObject aEvent(xChartModel);
+ xModifyListener->modified(aEvent);
}
}
}
- catch( const uno::Exception & )
+ catch (const uno::Exception&)
{
DBG_UNHANDLED_EXCEPTION("chart2");
}
diff --git a/chart2/source/tools/PopupRequest.cxx b/chart2/source/tools/PopupRequest.cxx
index 1d3a36d5c43a..685dac49369c 100644
--- a/chart2/source/tools/PopupRequest.cxx
+++ b/chart2/source/tools/PopupRequest.cxx
@@ -14,14 +14,12 @@ using namespace css;
namespace chart
{
-
PopupRequest::PopupRequest()
: impl::PopupRequest_Base(m_aMutex)
{
}
-PopupRequest::~PopupRequest()
-{}
+PopupRequest::~PopupRequest() {}
// ____ XRequestCallback ____
@@ -33,9 +31,7 @@ void SAL_CALL PopupRequest::addCallback(const uno::Reference<awt::XCallback>& xC
// ____ WeakComponentImplHelperBase ____
// is called when dispose() is called at this component
-void SAL_CALL PopupRequest::disposing()
-{
-}
+void SAL_CALL PopupRequest::disposing() {}
} // namespace chart
diff --git a/chart2/source/tools/TrueGuard.cxx b/chart2/source/tools/TrueGuard.cxx
index f4acf35742d4..3fca959e78c2 100644
--- a/chart2/source/tools/TrueGuard.cxx
+++ b/chart2/source/tools/TrueGuard.cxx
@@ -21,17 +21,13 @@
namespace chart
{
-
-TrueGuard::TrueGuard( bool& rbTrueDuringGuardedTime )
- : m_rbTrueDuringGuardedTime( rbTrueDuringGuardedTime )
+TrueGuard::TrueGuard(bool& rbTrueDuringGuardedTime)
+ : m_rbTrueDuringGuardedTime(rbTrueDuringGuardedTime)
{
m_rbTrueDuringGuardedTime = true;
}
-TrueGuard::~TrueGuard()
-{
- m_rbTrueDuringGuardedTime = false;
-}
+TrueGuard::~TrueGuard() { m_rbTrueDuringGuardedTime = false; }
} // namespace chart