Kaydet (Commit) b739e6ae authored tarafından Matteo Casalin's avatar Matteo Casalin

Writer::GetBookmarks can return bool

Change-Id: I4210fd4bc086c5cfdfe7dc01cd9387993b4916ca
üst 63cb016b
......@@ -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 );
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment