diff options
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/fstalgorithm.hxx | 10 | ||||
-rw-r--r-- | sc/inc/postit.hxx | 4 |
2 files changed, 5 insertions, 9 deletions
diff --git a/sc/inc/fstalgorithm.hxx b/sc/inc/fstalgorithm.hxx index 73a4c5c3d64a..2a6ec14ddf2a 100644 --- a/sc/inc/fstalgorithm.hxx +++ b/sc/inc/fstalgorithm.hxx @@ -48,7 +48,7 @@ template<typename Key, typename Val, typename Span> void buildSpanWithValue( std::vector<Span>& rSpans, typename mdds::flat_segment_tree<Key,Val>::const_iterator it, - typename mdds::flat_segment_tree<Key,Val>::const_iterator itEnd, const Key* pStart ) + typename mdds::flat_segment_tree<Key,Val>::const_iterator itEnd ) { Key nLastPos = it->first; Val nLastVal = it->second; @@ -61,11 +61,7 @@ void buildSpanWithValue( { Key nIndex1 = nLastPos; Key nIndex2 = nThisPos-1; - - if (!pStart || *pStart < nIndex1) - rSpans.push_back(Span(nIndex1, nIndex2, nLastVal)); - else if (*pStart <= nIndex2) - rSpans.push_back(Span(*pStart, nIndex2, nLastVal)); + rSpans.push_back(Span(nIndex1, nIndex2, nLastVal)); } nLastPos = nThisPos; @@ -105,7 +101,7 @@ std::vector<Span> toSpanArrayWithValue( const mdds::flat_segment_tree<Key,Val>& std::vector<Span> aSpans; typename FstType::const_iterator it = rTree.begin(), itEnd = rTree.end(); - buildSpanWithValue<Key,Val,Span>(aSpans, it, itEnd, nullptr); + buildSpanWithValue<Key,Val,Span>(aSpans, it, itEnd); return aSpans; } diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx index ba7d2705fb04..c13169f1b960 100644 --- a/sc/inc/postit.hxx +++ b/sc/inc/postit.hxx @@ -304,7 +304,7 @@ public: */ static ScPostIt* CreateNoteFromCaption( ScDocument& rDoc, const ScAddress& rPos, - SdrCaptionObj* pCaption, bool bShown ); + SdrCaptionObj* pCaption ); /** Creates a cell note based on the passed caption object data. @@ -341,7 +341,7 @@ public: ScDocument& rDoc, const ScAddress& rPos, SfxItemSet* pItemSet, OutlinerParaObject* pOutlinerObj, const tools::Rectangle& rCaptionRect, bool bShown, - bool bAlwaysCreateCaption, sal_uInt32 nPostItId = 0 ); + bool bAlwaysCreateCaption ); /** Creates a cell note based on the passed string and inserts it into the document. |