summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/inc/contentindex.hxx1
-rw-r--r--sw/source/core/crsr/crsrsh.cxx2
2 files changed, 1 insertions, 2 deletions
diff --git a/sw/inc/contentindex.hxx b/sw/inc/contentindex.hxx
index 0e2abc582116..2be6bc650879 100644
--- a/sw/inc/contentindex.hxx
+++ b/sw/inc/contentindex.hxx
@@ -116,7 +116,6 @@ SW_DLLPUBLIC std::ostream& operator <<(std::ostream& s, const SwContentIndex& in
class SAL_WARN_UNUSED SwContentIndexReg
{
friend class SwContentIndex;
- friend bool sw_PosOk(const SwPosition & aPos);
const SwContentIndex * m_pFirst;
const SwContentIndex * m_pLast;
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index ab5a36d11a37..a03a4c6d68de 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -3588,7 +3588,7 @@ static const SwStartNode* lcl_NodeContext( const SwNode& rNode )
@param aPos the position to check.
*/
-bool sw_PosOk(const SwPosition & aPos)
+static bool sw_PosOk(const SwPosition & aPos)
{
return nullptr != aPos.GetNode().GetContentNode() &&
aPos.GetContentNode();