ofz#35787 Timeout
1m14.061s -> 0m3.975s Change-Id: I96e6f2c60017ba57062bd56c2e80604e117b3b99 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118381 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
34fcf3b6e0
commit
0dc7b1cbb9
5 changed files with 16 additions and 12 deletions
|
@ -39,7 +39,7 @@ public:
|
|||
void ChangeNumRule(SwNumRule& rNumRule);
|
||||
SwTextNode* GetTextNode() const { return mpTextNode; }
|
||||
|
||||
virtual bool IsNotificationEnabled() const override;
|
||||
virtual bool IsNotificationEnabled(const SwDoc& rDoc) const override;
|
||||
|
||||
virtual bool IsContinuous() const override;
|
||||
|
||||
|
|
|
@ -354,7 +354,7 @@ protected:
|
|||
@retval true Notification enabled in general.
|
||||
@retval false else
|
||||
*/
|
||||
virtual bool IsNotificationEnabled() const = 0;
|
||||
virtual bool IsNotificationEnabled(const SwDoc& rDoc) const = 0;
|
||||
|
||||
// #i64010# - made pure virtual
|
||||
virtual bool HasCountedChildren() const = 0;
|
||||
|
|
|
@ -122,22 +122,26 @@ void SwNodeNum::PostRemove()
|
|||
}
|
||||
}
|
||||
|
||||
bool SwNodeNum::IsNotifiable(const SwDoc& /*rDoc*/) const
|
||||
bool SwNodeNum::IsNotifiable(const SwDoc& rDoc) const
|
||||
{
|
||||
bool aResult = true;
|
||||
bool aResult;
|
||||
|
||||
if ( GetTextNode() )
|
||||
aResult = GetTextNode()->IsNotifiable();
|
||||
if (const SwTextNode* pTextNode = GetTextNode())
|
||||
aResult = pTextNode->IsNotifiable();
|
||||
else
|
||||
aResult = IsNotificationEnabled(rDoc);
|
||||
|
||||
return aResult;
|
||||
}
|
||||
|
||||
bool SwNodeNum::IsNotificationEnabled() const
|
||||
bool SwNodeNum::IsNotificationEnabled(const SwDoc& rDoc) const
|
||||
{
|
||||
bool aResult = true;
|
||||
bool aResult;
|
||||
|
||||
if ( GetTextNode() )
|
||||
aResult = GetTextNode()->IsNotificationEnabled();
|
||||
if (const SwTextNode* pTextNode = GetTextNode())
|
||||
aResult = pTextNode->IsNotificationEnabled();
|
||||
else
|
||||
aResult = !rDoc.IsInReading() && !rDoc.IsInDtor();
|
||||
|
||||
return aResult;
|
||||
}
|
||||
|
|
|
@ -487,7 +487,7 @@ void SwNumberTreeNode::AddChild(SwNumberTreeNode* pChild,
|
|||
if (aResult.second)
|
||||
{
|
||||
pChild->mpParent = this;
|
||||
bool bNotification = pChild->IsNotificationEnabled();
|
||||
bool bNotification = pChild->IsNotificationEnabled(rDoc);
|
||||
tSwNumberTreeChildren::iterator aInsertedIt = aResult.first;
|
||||
|
||||
if (aInsertedIt != mChildren.begin())
|
||||
|
|
|
@ -4204,7 +4204,7 @@ bool SwTextNode::IsNotifiable() const
|
|||
bool SwTextNode::IsNotificationEnabled() const
|
||||
{
|
||||
const SwDoc& rDoc = GetDoc();
|
||||
return !(rDoc.IsInReading() || rDoc.IsInDtor());
|
||||
return !rDoc.IsInReading() && !rDoc.IsInDtor();
|
||||
}
|
||||
|
||||
void SwTextNode::SetCountedInList( bool bCounted )
|
||||
|
|
Loading…
Reference in a new issue