Kaydet (Commit) 44266621 authored tarafından Noel Grandin's avatar Noel Grandin

sc: boost::ptr_vector->std::vector<std::unique_ptr>

Change-Id: I4360e3238407d9cc7d664c543868cdb66271dbe8
üst 8f6ecf15
......@@ -42,7 +42,9 @@
#include "cellvalue.hxx"
#include "mtvcellfunc.hxx"
#include <boost/ptr_container/ptr_vector.hpp>
#include <vector>
#include <memory>
#include <o3tl/make_unique.hxx>
const sal_uInt16 ROWINFO_MAX = 1024;
......@@ -677,7 +679,7 @@ void ScDocument::FillInfo(
pCondFormList->endRendering();
// bedingte Formatierung auswerten
::boost::ptr_vector<ScPatternAttr> aAltPatterns;
std::vector< std::unique_ptr<ScPatternAttr> > aAltPatterns;
// favour preview over condition
if (bAnyCondition || bAnyPreview)
{
......@@ -693,8 +695,8 @@ void ScDocument::FillInfo(
{
if ( ScStyleSheet* pPreviewStyle = GetPreviewCellStyle( nCol, pRowInfo[nArrRow].nRowNo, nTab ) )
{
aAltPatterns.push_back( new ScPatternAttr( *pInfo->pPatternAttr ) );
pModifiedPatt = &aAltPatterns.back();
aAltPatterns.push_back( o3tl::make_unique<ScPatternAttr>( *pInfo->pPatternAttr ) );
pModifiedPatt = aAltPatterns.back().get();
pModifiedPatt->SetStyleSheet( pPreviewStyle );
}
}
......
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