summaryrefslogtreecommitdiff
path: root/framework/inc
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/inc
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/inc')
-rw-r--r--framework/inc/helper/wakeupthread.hxx15
-rw-r--r--framework/inc/jobs/jobconst.hxx12
-rw-r--r--framework/inc/services/uriabbreviation.hxx18
3 files changed, 24 insertions, 21 deletions
diff --git a/framework/inc/helper/wakeupthread.hxx b/framework/inc/helper/wakeupthread.hxx
index 51cf859f0462..49f268a821e8 100644
--- a/framework/inc/helper/wakeupthread.hxx
+++ b/framework/inc/helper/wakeupthread.hxx
@@ -28,13 +28,15 @@
#include <osl/mutex.hxx>
#include <salhelper/thread.hxx>
-namespace com::sun::star::util {
- class XUpdatable;
+namespace com::sun::star::util
+{
+class XUpdatable;
}
-namespace framework{
-
-class WakeUpThread final : public salhelper::Thread {
+namespace framework
+{
+class WakeUpThread final : public salhelper::Thread
+{
css::uno::WeakReference<css::util::XUpdatable> updatable_;
osl::Condition condition_;
@@ -44,11 +46,10 @@ class WakeUpThread final : public salhelper::Thread {
void execute() override;
public:
- WakeUpThread(css::uno::Reference<css::util::XUpdatable> const & updatable);
+ WakeUpThread(css::uno::Reference<css::util::XUpdatable> const& updatable);
void stop();
};
-
}
#endif
diff --git a/framework/inc/jobs/jobconst.hxx b/framework/inc/jobs/jobconst.hxx
index b2efb749e3a9..31a504a9d360 100644
--- a/framework/inc/jobs/jobconst.hxx
+++ b/framework/inc/jobs/jobconst.hxx
@@ -22,8 +22,8 @@
#include <rtl/ustring.hxx>
-namespace framework{
-
+namespace framework
+{
/**
@short defines all constant values used within a job environment.
@@ -34,10 +34,10 @@ namespace framework{
*/
class JobConst
{
- public:
- static constexpr OUStringLiteral ANSWER_DEACTIVATE_JOB = u"Deactivate";
- static constexpr OUStringLiteral ANSWER_SAVE_ARGUMENTS = u"SaveArguments";
- static constexpr OUStringLiteral ANSWER_SEND_DISPATCHRESULT = u"SendDispatchResult";
+public:
+ static constexpr OUStringLiteral ANSWER_DEACTIVATE_JOB = u"Deactivate";
+ static constexpr OUStringLiteral ANSWER_SAVE_ARGUMENTS = u"SaveArguments";
+ static constexpr OUStringLiteral ANSWER_SEND_DISPATCHRESULT = u"SendDispatchResult";
};
} // namespace framework
diff --git a/framework/inc/services/uriabbreviation.hxx b/framework/inc/services/uriabbreviation.hxx
index 200296da2df9..f4e3ef10dc4b 100644
--- a/framework/inc/services/uriabbreviation.hxx
+++ b/framework/inc/services/uriabbreviation.hxx
@@ -28,23 +28,25 @@
namespace framework
{
-
-class UriAbbreviation final : public ::cppu::WeakImplHelper< css::util::XStringAbbreviation, css::lang::XServiceInfo>
+class UriAbbreviation final
+ : public ::cppu::WeakImplHelper<css::util::XStringAbbreviation, css::lang::XServiceInfo>
{
public:
- explicit UriAbbreviation(css::uno::Reference< css::uno::XComponentContext > const & context);
+ explicit UriAbbreviation(css::uno::Reference<css::uno::XComponentContext> const& context);
/* interface XServiceInfo */
virtual OUString SAL_CALL getImplementationName() override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& sServiceName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
+ virtual sal_Bool SAL_CALL supportsService(const OUString& sServiceName) override;
+ virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
// css::util::XStringAbbreviation:
- virtual OUString SAL_CALL abbreviateString(const css::uno::Reference< css::util::XStringWidth > & xStringWidth, ::sal_Int32 nWidth, const OUString & aString) override;
+ virtual OUString SAL_CALL
+ abbreviateString(const css::uno::Reference<css::util::XStringWidth>& xStringWidth,
+ ::sal_Int32 nWidth, const OUString& aString) override;
private:
- UriAbbreviation(UriAbbreviation const &) = delete;
- UriAbbreviation& operator =(UriAbbreviation const &) = delete;
+ UriAbbreviation(UriAbbreviation const&) = delete;
+ UriAbbreviation& operator=(UriAbbreviation const&) = delete;
virtual ~UriAbbreviation() override {}
};