diff options
Diffstat (limited to 'sc/source/filter/xml/xmlsubti.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlsubti.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/xml/xmlsubti.cxx b/sc/source/filter/xml/xmlsubti.cxx index 88b3ede5fad7..f8da27fb556c 100644 --- a/sc/source/filter/xml/xmlsubti.cxx +++ b/sc/source/filter/xml/xmlsubti.cxx @@ -49,7 +49,7 @@ #include <com/sun/star/util/XProtectable.hpp> #include <com/sun/star/sheet/XArrayFormulaRange.hpp> -#include <memory> +#include <boost/scoped_ptr.hpp> using namespace com::sun::star; @@ -205,7 +205,7 @@ void ScMyTables::DeleteTable() uno::Sequence<sal_Int8> aHash; ::sax::Converter::decodeBase64(aHash, maProtectionData.maPassword); - std::unique_ptr<ScTableProtection> pProtect(new ScTableProtection); + boost::scoped_ptr<ScTableProtection> pProtect(new ScTableProtection); pProtect->setProtected(maProtectionData.mbProtected); pProtect->setPasswordHash(aHash, maProtectionData.meHash1, maProtectionData.meHash2); pProtect->setOption(ScTableProtection::SELECT_LOCKED_CELLS, maProtectionData.mbSelectProtectedCells); @@ -278,7 +278,7 @@ void ScMyTables::AddMatrixRange( maMatrixRangeList.Append(aScRange); ScDocumentImport& rDoc = rImport.GetDoc(); - std::unique_ptr<ScTokenArray> pCode(new ScTokenArray); + boost::scoped_ptr<ScTokenArray> pCode(new ScTokenArray); pCode->AddStringXML( rFormula ); if( (eGrammar == formula::FormulaGrammar::GRAM_EXTERNAL) && !rFormulaNmsp.isEmpty() ) pCode->AddStringXML( rFormulaNmsp ); |