diff options
Diffstat (limited to 'basctl/source/inc/bastypes.hxx')
-rw-r--r-- | basctl/source/inc/bastypes.hxx | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index 0e7b639be64e..0b7ede803752 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -128,12 +128,27 @@ public: void SetBreakPointsInBasic( SbModule* pModule ); void ResetHitCount(); - size_t size() const; - BreakPoint* at( size_t i ); - const BreakPoint* at( size_t i ) const; - BreakPoint* remove( BreakPoint* ptr ); - void push_back( BreakPoint* item ); - void clear(); + size_t size() const + { + return maBreakPoints.size(); + } + BreakPoint* at( size_t i ) + { + return i < maBreakPoints.size() ? maBreakPoints[ i ] : NULL; + } + const BreakPoint* at( size_t i ) const + { + return i < maBreakPoints.size() ? maBreakPoints[ i ] : NULL; + } + void push_back( BreakPoint* item ) + { + maBreakPoints.push_back( item ); + } + void clear() + { + maBreakPoints.clear(); + } + BreakPoint* remove( BreakPoint* ptr ); }; // helper class for sorting TabBar |