diff options
Diffstat (limited to 'source/Breakpoint/BreakpointLocation.cpp')
| -rw-r--r-- | source/Breakpoint/BreakpointLocation.cpp | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/source/Breakpoint/BreakpointLocation.cpp b/source/Breakpoint/BreakpointLocation.cpp index 11ecfecc5bc7..85233c9374cb 100644 --- a/source/Breakpoint/BreakpointLocation.cpp +++ b/source/Breakpoint/BreakpointLocation.cpp @@ -477,7 +477,22 @@ void  BreakpointLocation::BumpHitCount()  {      if (IsEnabled()) +    { +        // Step our hit count, and also step the hit count of the owner.          IncrementHitCount(); +        m_owner.IncrementHitCount(); +    } +} + +void +BreakpointLocation::UndoBumpHitCount() +{ +    if (IsEnabled()) +    { +        // Step our hit count, and also step the hit count of the owner. +        DecrementHitCount(); +        m_owner.DecrementHitCount(); +    }  }  bool | 
