summaryrefslogtreecommitdiff
path: root/sw/source/filter/writer/writer.cxx
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 /sw/source/filter/writer/writer.cxx
parent63cb016bc31a2d51d445b335454b9de99c77e413 (diff)
Writer::GetBookmarks can return bool
Change-Id: I4210fd4bc086c5cfdfe7dc01cd9387993b4916ca
Diffstat (limited to 'sw/source/filter/writer/writer.cxx')
-rw-r--r--sw/source/filter/writer/writer.cxx4
1 files changed, 2 insertions, 2 deletions
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