summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-01-03 15:23:59 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-01-03 15:25:20 +0100
commitb739e6aeef8329e7e4a7ec525a650a4c74cf4699 (patch)
tree7fc5684bd8ef9483312de1b3279469c9bc1c26c5
parent63cb016bc31a2d51d445b335454b9de99c77e413 (diff)
Writer::GetBookmarks can return bool
Change-Id: I4210fd4bc086c5cfdfe7dc01cd9387993b4916ca
-rw-r--r--sw/inc/shellio.hxx2
-rw-r--r--sw/source/filter/writer/writer.cxx4
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