diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-01-03 15:23:59 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-01-03 15:25:20 +0100 |
commit | b739e6aeef8329e7e4a7ec525a650a4c74cf4699 (patch) | |
tree | 7fc5684bd8ef9483312de1b3279469c9bc1c26c5 /sw | |
parent | 63cb016bc31a2d51d445b335454b9de99c77e413 (diff) |
Writer::GetBookmarks can return bool
Change-Id: I4210fd4bc086c5cfdfe7dc01cd9387993b4916ca
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/shellio.hxx | 2 | ||||
-rw-r--r-- | sw/source/filter/writer/writer.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx index a1d024fab235..6b97b2f739e3 100644 --- a/sw/inc/shellio.hxx +++ b/sw/inc/shellio.hxx @@ -438,7 +438,7 @@ public: // OtherPos of the bookmarks also inserted. void CreateBookmarkTbl(); // Search alle Bookmarks in the range and return it in the Array. - sal_uInt16 GetBookmarks( const SwCntntNode& rNd, + bool GetBookmarks( const SwCntntNode& rNd, sal_Int32 nStt, sal_Int32 nEnd, std::vector< const ::sw::mark::IMark* >& rArr ); diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx index 0f4788fed7d4..c928b9a6438e 100644 --- a/sw/source/filter/writer/writer.cxx +++ b/sw/source/filter/writer/writer.cxx @@ -398,7 +398,7 @@ void Writer::CreateBookmarkTbl() } // search alle Bookmarks in the range and return it in the Array -sal_uInt16 Writer::GetBookmarks(const SwCntntNode& rNd, sal_Int32 nStt, +bool Writer::GetBookmarks(const SwCntntNode& rNd, sal_Int32 nStt, sal_Int32 nEnd, std::vector< const ::sw::mark::IMark* >& rArr) { OSL_ENSURE( rArr.empty(), "there are still entries available" ); @@ -435,7 +435,7 @@ sal_uInt16 Writer::GetBookmarks(const SwCntntNode& rNd, sal_Int32 nStt, } } } - return rArr.size(); + return !rArr.empty(); } // Storage-specific |