From 695280feb90729fde1a7ecf1c409ae16f8281a46 Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Thu, 12 Nov 2020 13:21:51 +0100 Subject: tdf#123936 Formatting files in module sw with clang-format Change-Id: I6243bc95129bf81a124d006ce0fc1aa1b5f618bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105718 Reviewed-by: Christian Lohmaier Tested-by: Jenkins --- sw/source/core/text/noteurl.cxx | 2 +- sw/source/core/text/porref.hxx | 16 ++++++++-------- sw/source/core/text/portox.hxx | 16 ++++++++-------- sw/source/core/text/txtcache.hxx | 13 ++++++------- 4 files changed, 23 insertions(+), 24 deletions(-) (limited to 'sw/source/core/text') diff --git a/sw/source/core/text/noteurl.cxx b/sw/source/core/text/noteurl.cxx index 7e1f91493c39..fa91ea252d5f 100644 --- a/sw/source/core/text/noteurl.cxx +++ b/sw/source/core/text/noteurl.cxx @@ -20,6 +20,6 @@ #include // Global variable -SwNoteURL *pNoteURL = nullptr; +SwNoteURL* pNoteURL = nullptr; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/core/text/porref.hxx b/sw/source/core/text/porref.hxx index 0c7dc85037b9..b0fff5e34b2a 100644 --- a/sw/source/core/text/porref.hxx +++ b/sw/source/core/text/porref.hxx @@ -24,8 +24,8 @@ class SwRefPortion : public SwTextPortion { public: - SwRefPortion(){ SetWhichPor( PortionType::Ref ); } - virtual void Paint( const SwTextPaintInfo &rInf ) const override; + SwRefPortion() { SetWhichPor(PortionType::Ref); } + virtual void Paint(const SwTextPaintInfo& rInf) const override; }; class SwIsoRefPortion : public SwRefPortion @@ -33,14 +33,14 @@ class SwIsoRefPortion : public SwRefPortion sal_uInt16 nViewWidth; public: - SwIsoRefPortion(); - virtual bool Format( SwTextFormatInfo &rInf ) override; - virtual void Paint( const SwTextPaintInfo &rInf ) const override; - virtual SwLinePortion *Compress() override; - virtual sal_uInt16 GetViewWidth( const SwTextSizeInfo &rInf ) const override; + SwIsoRefPortion(); + virtual bool Format(SwTextFormatInfo& rInf) override; + virtual void Paint(const SwTextPaintInfo& rInf) const override; + virtual SwLinePortion* Compress() override; + virtual sal_uInt16 GetViewWidth(const SwTextSizeInfo& rInf) const override; // Accessibility: pass information about this portion to the PortionHandler - virtual void HandlePortion( SwPortionHandler& rPH ) const override; + virtual void HandlePortion(SwPortionHandler& rPH) const override; }; #endif diff --git a/sw/source/core/text/portox.hxx b/sw/source/core/text/portox.hxx index b2c8f23a76df..8b61c1064217 100644 --- a/sw/source/core/text/portox.hxx +++ b/sw/source/core/text/portox.hxx @@ -25,8 +25,8 @@ class SwToxPortion : public SwTextPortion { public: - SwToxPortion(){ SetWhichPor( PortionType::Tox ); } - virtual void Paint( const SwTextPaintInfo &rInf ) const override; + SwToxPortion() { SetWhichPor(PortionType::Tox); } + virtual void Paint(const SwTextPaintInfo& rInf) const override; }; class SwIsoToxPortion : public SwToxPortion @@ -34,14 +34,14 @@ class SwIsoToxPortion : public SwToxPortion sal_uInt16 nViewWidth; public: - SwIsoToxPortion(); - virtual bool Format( SwTextFormatInfo &rInf ) override; - virtual void Paint( const SwTextPaintInfo &rInf ) const override; - virtual SwLinePortion *Compress() override; - virtual sal_uInt16 GetViewWidth( const SwTextSizeInfo &rInf ) const override; + SwIsoToxPortion(); + virtual bool Format(SwTextFormatInfo& rInf) override; + virtual void Paint(const SwTextPaintInfo& rInf) const override; + virtual SwLinePortion* Compress() override; + virtual sal_uInt16 GetViewWidth(const SwTextSizeInfo& rInf) const override; // Accessibility: pass information about this portion to the PortionHandler - virtual void HandlePortion( SwPortionHandler& rPH ) const override; + virtual void HandlePortion(SwPortionHandler& rPH) const override; }; #endif diff --git a/sw/source/core/text/txtcache.hxx b/sw/source/core/text/txtcache.hxx index d04a0eb63323..192fb42ee20f 100644 --- a/sw/source/core/text/txtcache.hxx +++ b/sw/source/core/text/txtcache.hxx @@ -32,11 +32,11 @@ class SwTextLine : public SwCacheObj virtual void UpdateCachePos() override; public: - SwTextLine( SwTextFrame const *pFrame, std::unique_ptr pNew = nullptr ); + SwTextLine(SwTextFrame const* pFrame, std::unique_ptr pNew = nullptr); virtual ~SwTextLine() override; - SwParaPortion *GetPara() { return pLine.get(); } - const SwParaPortion *GetPara() const { return pLine.get(); } + SwParaPortion* GetPara() { return pLine.get(); } + const SwParaPortion* GetPara() const { return pLine.get(); } void SetPara(SwParaPortion* pNew, bool bDelete) { @@ -48,14 +48,13 @@ public: class SwTextLineAccess : public SwCacheAccess { - protected: - virtual SwCacheObj *NewObj() override; + virtual SwCacheObj* NewObj() override; public: - explicit SwTextLineAccess( const SwTextFrame *pOwner ); + explicit SwTextLineAccess(const SwTextFrame* pOwner); - SwParaPortion *GetPara(); + SwParaPortion* GetPara(); bool IsAvailable() const; }; -- cgit v1.2.3