summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-09-03 09:58:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-09-03 12:47:10 +0200
commit2db30aa0206ca3d9d5a665d550820d8fcbcff4b9 (patch)
tree3c7c424915813a78c05c4d8ddb90aa443e02f96c /sw/source
parentda157e5e723cfa329b7f149c37c4c36c1444ca6f (diff)
-Werror,-Wcompound-token-split-by-space
Between <https://github.com/llvm/llvm-project/commit/ 0e00a95b4fad5e72851de012d3a0b2c2d01f8685> "Add new warning for compound punctuation tokens that are split across macro expansions or split by whitespace" and <https://github.com/llvm/llvm-project/commit/ 0da84535b1e328188efbc1bb697dc7276f9e7d27> "Remove -Wcompound-token-split-by-space from -Wall", Clang 12 trunk emitted such "'::' and '*' tokens forming pointer to member type are separated by whitespace" warnings, so just clean those places up for good even if the warning would not hit out of the box with any official Clang release. Change-Id: Ic58c0da4b3dcce428f5aaa54e13d15299394cf9e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101987 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/inc/frame.hxx8
-rw-r--r--sw/source/core/inc/pamtyp.hxx4
-rw-r--r--sw/source/core/layout/paintfrm.cxx4
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx2
-rw-r--r--sw/source/filter/ww8/ww8par6.cxx6
-rw-r--r--sw/source/ui/envelp/labelexp.cxx2
-rw-r--r--sw/source/uibase/inc/wrtsh.hxx2
-rw-r--r--sw/source/uibase/misc/redlndlg.cxx2
-rw-r--r--sw/source/uibase/shells/annotsh.cxx2
-rw-r--r--sw/source/uibase/shells/drwtxtsh.cxx2
10 files changed, 17 insertions, 17 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx
index 429746737bf4..ac5bc9570569 100644
--- a/sw/source/core/inc/frame.hxx
+++ b/sw/source/core/inc/frame.hxx
@@ -1258,11 +1258,11 @@ public:
SwFrameDeleteGuard& operator=(const SwFrameDeleteGuard&) =delete;
};
-typedef long (SwFrame:: *SwFrameGet)() const;
-typedef bool (SwFrame:: *SwFrameMax)( long );
-typedef void (SwFrame:: *SwFrameMakePos)( const SwFrame*, const SwFrame*, bool );
+typedef long (SwFrame::*SwFrameGet)() const;
+typedef bool (SwFrame::*SwFrameMax)( long );
+typedef void (SwFrame::*SwFrameMakePos)( const SwFrame*, const SwFrame*, bool );
typedef long (*SwOperator)( long, long );
-typedef void (SwFrame:: *SwFrameSet)( long, long );
+typedef void (SwFrame::*SwFrameSet)( long, long );
struct SwRectFnCollection
{
diff --git a/sw/source/core/inc/pamtyp.hxx b/sw/source/core/inc/pamtyp.hxx
index 492c24957fd1..9326b348dcc2 100644
--- a/sw/source/core/inc/pamtyp.hxx
+++ b/sw/source/core/inc/pamtyp.hxx
@@ -60,9 +60,9 @@ typedef bool (*GoNd)( SwNode*, SwIndex*, sal_uInt16 );
typedef SwContentNode* (*GoNds)( SwNodeIndex*, bool );
typedef void (*GoDoc)( SwPosition* );
typedef void (*GoSection)( SwPosition* );
-typedef bool (SwPosition:: *CmpOp)( const SwPosition& ) const;
+typedef bool (SwPosition::*CmpOp)( const SwPosition& ) const;
typedef const SwTextAttr* (*GetHint)( const SwpHints&, size_t&, sal_Int32 );
-typedef bool (utl::TextSearch:: *SearchText)( const OUString&, sal_Int32*,
+typedef bool (utl::TextSearch::*SearchText)( const OUString&, sal_Int32*,
sal_Int32*, css::util::SearchResult* );
typedef void (*MvSection)( SwNodeIndex * );
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 9dbd735fabe9..bbb6868a235f 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -6510,8 +6510,8 @@ static void lcl_RefreshLine( const SwLayoutFrame *pLay,
const bool bHori = rP1.Y() == rP2.Y();
// use pointers to member function in order to unify flow
- typedef long (Point:: *pmfPtGet)() const;
- typedef void (Point:: *pmfPtSet)(long);
+ typedef long (Point::*pmfPtGet)() const;
+ typedef void (Point::*pmfPtSet)(long);
const pmfPtGet pDirPtX = &Point::X;
const pmfPtGet pDirPtY = &Point::Y;
const pmfPtGet pDirPt = bHori ? pDirPtX : pDirPtY;
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index 1cc60c27a8af..1897a874582a 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -755,7 +755,7 @@ void WW8FieldEntry::SetBookmarkCode(const OUString& bookmarkCode)
// Returnvalue: Total length of field
long SwWW8ImplReader::Read_Field(WW8PLCFManResult* pRes)
{
- typedef eF_ResT (SwWW8ImplReader:: *FNReadField)( WW8FieldDesc*, OUString& );
+ typedef eF_ResT (SwWW8ImplReader::*FNReadField)( WW8FieldDesc*, OUString& );
enum Limits {eMax = 96};
static const FNReadField aWW8FieldTab[eMax+1] =
{
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index ebb21ecd5199..b546cb0ac79c 100644
--- a/sw/source/filter/ww8/ww8par6.cxx
+++ b/sw/source/filter/ww8/ww8par6.cxx
@@ -5256,7 +5256,7 @@ bool SwWW8ImplReader::ParseTabPos(WW8_TablePos *pTabPos, WW8PLCFx_Cp_FKP* pPap)
long SwWW8ImplReader::ImportExtSprm(WW8PLCFManResult* pRes)
{
// array for reading of the extended ( self-defined ) SPRMs
- typedef long (SwWW8ImplReader:: *FNReadRecordExt)(WW8PLCFManResult*);
+ typedef long (SwWW8ImplReader::*FNReadRecordExt)(WW8PLCFManResult*);
static const FNReadRecordExt aWwSprmTab[] =
{
@@ -5284,7 +5284,7 @@ long SwWW8ImplReader::ImportExtSprm(WW8PLCFManResult* pRes)
void SwWW8ImplReader::EndExtSprm(sal_uInt16 nSprmId)
{
- typedef sal_uInt16 (SwWW8ImplReader:: *FNReadRecordExt)();
+ typedef sal_uInt16 (SwWW8ImplReader::*FNReadRecordExt)();
static const FNReadRecordExt aWwSprmTab[] =
{
@@ -5304,7 +5304,7 @@ void SwWW8ImplReader::EndExtSprm(sal_uInt16 nSprmId)
// arrays for reading the SPRMs
// function for reading of SPRMs. Par1: SprmId
-typedef void (SwWW8ImplReader:: *FNReadRecord)( sal_uInt16, const sal_uInt8*, short );
+typedef void (SwWW8ImplReader::*FNReadRecord)( sal_uInt16, const sal_uInt8*, short );
struct SprmReadInfo
{
diff --git a/sw/source/ui/envelp/labelexp.cxx b/sw/source/ui/envelp/labelexp.cxx
index 8f3cf437a660..ba4f37b1e040 100644
--- a/sw/source/ui/envelp/labelexp.cxx
+++ b/sw/source/ui/envelp/labelexp.cxx
@@ -36,7 +36,7 @@ void SwLabDlg::UpdateFieldInformation(uno::Reference< frame::XModel > const & xM
static const struct SwLabItemMap {
const char* pName;
- OUString SwLabItem:: *pValue;
+ OUString SwLabItem::*pValue;
} aArr[] = {
{ "BC_PRIV_FIRSTNAME" , &SwLabItem::m_aPrivFirstName },
{ "BC_PRIV_NAME" , &SwLabItem::m_aPrivName },
diff --git a/sw/source/uibase/inc/wrtsh.hxx b/sw/source/uibase/inc/wrtsh.hxx
index 8cb74403c795..1b70623ccb33 100644
--- a/sw/source/uibase/inc/wrtsh.hxx
+++ b/sw/source/uibase/inc/wrtsh.hxx
@@ -198,7 +198,7 @@ public:
void SelAll();
// basecursortravelling
-typedef bool (SwWrtShell:: *FNSimpleMove)();
+typedef bool (SwWrtShell::*FNSimpleMove)();
bool SimpleMove( FNSimpleMove, bool bSelect );
bool Left ( sal_uInt16 nMode, bool bSelect,
diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx
index 0d21ad65554c..81f17f8bfd59 100644
--- a/sw/source/uibase/misc/redlndlg.cxx
+++ b/sw/source/uibase/misc/redlndlg.cxx
@@ -819,7 +819,7 @@ void SwRedlineAcceptDlg::CallAcceptReject( bool bSelect, bool bAccept )
else
rTreeView.all_foreach(lambda);
- bool (SwEditShell:: *FnAccRej)( SwRedlineTable::size_type ) = &SwEditShell::AcceptRedline;
+ bool (SwEditShell::*FnAccRej)( SwRedlineTable::size_type ) = &SwEditShell::AcceptRedline;
if( !bAccept )
FnAccRej = &SwEditShell::RejectRedline;
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index f43534d66eb3..c08be05edaad 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -1615,7 +1615,7 @@ void SwAnnotationShell::StateUndo(SfxItemSet &rSet)
{
if( pUndoManager )
{
- OUString (SfxUndoManager:: *fnGetComment)( size_t, bool const ) const;
+ OUString (SfxUndoManager::*fnGetComment)( size_t, bool const ) const;
sal_uInt16 nCount;
if( SID_GETUNDOSTRINGS == nWhich )
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx
index 4b72415e4aaa..f8e34eabde29 100644
--- a/sw/source/uibase/shells/drwtxtsh.cxx
+++ b/sw/source/uibase/shells/drwtxtsh.cxx
@@ -549,7 +549,7 @@ void SwDrawTextShell::StateUndo(SfxItemSet &rSet)
SfxUndoManager* pUndoManager = GetUndoManager();
if( pUndoManager )
{
- OUString (SfxUndoManager:: *fnGetComment)( size_t, bool const ) const;
+ OUString (SfxUndoManager::*fnGetComment)( size_t, bool const ) const;
sal_uInt16 nCount;
if( SID_GETUNDOSTRINGS == nWhich )