diff options
Diffstat (limited to 'basic/source/comp')
-rw-r--r-- | basic/source/comp/dim.cxx | 6 | ||||
-rw-r--r-- | basic/source/comp/io.cxx | 14 | ||||
-rw-r--r-- | basic/source/comp/loops.cxx | 4 | ||||
-rw-r--r-- | basic/source/comp/sbcomp.cxx | 4 |
4 files changed, 14 insertions, 14 deletions
diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx index 2faa00eaf65e..447a50a61335 100644 --- a/basic/source/comp/dim.cxx +++ b/basic/source/comp/dim.cxx @@ -29,7 +29,7 @@ #include <com/sun/star/reflection/XIdlMethod.hpp> #include <com/sun/star/uno/Exception.hpp> #include <basic/codecompletecache.hxx> -#include <boost/scoped_ptr.hpp> +#include <memory> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -588,7 +588,7 @@ void SbiParser::DefType( bool bPrivate ) SbxObject *pType = new SbxObject(aSym); - boost::scoped_ptr<SbiSymDef> pElem; + std::unique_ptr<SbiSymDef> pElem; SbiDimList* pDim = NULL; bool bDone = false; @@ -960,7 +960,7 @@ SbiProcDef* SbiParser::ProcDecl( bool bDecl ) bool bError2 = true; if( bOptional && bCompatible && eTok == EQ ) { - boost::scoped_ptr<SbiConstExpression> pDefaultExpr(new SbiConstExpression( this )); + std::unique_ptr<SbiConstExpression> pDefaultExpr(new SbiConstExpression( this )); SbxDataType eType2 = pDefaultExpr->GetType(); sal_uInt16 nStringId; diff --git a/basic/source/comp/io.cxx b/basic/source/comp/io.cxx index 4a2f2dbbef82..f991f4ea6aa1 100644 --- a/basic/source/comp/io.cxx +++ b/basic/source/comp/io.cxx @@ -19,7 +19,7 @@ #include "parser.hxx" #include "iosys.hxx" -#include <boost/scoped_ptr.hpp> +#include <memory> // test if there's an I/O channel @@ -52,7 +52,7 @@ void SbiParser::Print() { if( !IsEoln( Peek() ) ) { - boost::scoped_ptr<SbiExpression> pExpr(new SbiExpression( this )); + std::unique_ptr<SbiExpression> pExpr(new SbiExpression( this )); pExpr->Gen(); pExpr.reset(); Peek(); @@ -81,7 +81,7 @@ void SbiParser::Write() while( !bAbort ) { - boost::scoped_ptr<SbiExpression> pExpr(new SbiExpression( this )); + std::unique_ptr<SbiExpression> pExpr(new SbiExpression( this )); pExpr->Gen(); pExpr.reset(); aGen.Gen( _BWRITE ); @@ -130,7 +130,7 @@ void SbiParser::Line() void SbiParser::LineInput() { Channel( true ); - boost::scoped_ptr<SbiExpression> pExpr(new SbiExpression( this, SbOPERAND )); + std::unique_ptr<SbiExpression> pExpr(new SbiExpression( this, SbOPERAND )); if( !pExpr->IsVariable() ) Error( ERRCODE_BASIC_VAR_EXPECTED ); if( pExpr->GetType() != SbxVARIANT && pExpr->GetType() != SbxSTRING ) @@ -147,7 +147,7 @@ void SbiParser::Input() { aGen.Gen( _RESTART ); Channel( true ); - boost::scoped_ptr<SbiExpression> pExpr(new SbiExpression( this, SbOPERAND )); + std::unique_ptr<SbiExpression> pExpr(new SbiExpression( this, SbOPERAND )); while( !bAbort ) { if( !pExpr->IsVariable() ) @@ -240,10 +240,10 @@ void SbiParser::Open() } TestToken( AS ); // channel number - boost::scoped_ptr<SbiExpression> pChan(new SbiExpression( this )); + std::unique_ptr<SbiExpression> pChan(new SbiExpression( this )); if( !pChan ) Error( ERRCODE_BASIC_SYNTAX ); - boost::scoped_ptr<SbiExpression> pLen; + std::unique_ptr<SbiExpression> pLen; if( Peek() == SYMBOL ) { Next(); diff --git a/basic/source/comp/loops.cxx b/basic/source/comp/loops.cxx index cdc3f21ac844..a77b9e2b3318 100644 --- a/basic/source/comp/loops.cxx +++ b/basic/source/comp/loops.cxx @@ -19,7 +19,7 @@ #include "parser.hxx" -#include <boost/scoped_ptr.hpp> +#include <memory> // Single-line IF and Multiline IF @@ -65,7 +65,7 @@ void SbiParser::If() aGen.BackChain( nEndLbl ); aGen.Statement(); - boost::scoped_ptr<SbiExpression> pCond(new SbiExpression( this )); + std::unique_ptr<SbiExpression> pCond(new SbiExpression( this )); pCond->Gen(); nEndLbl = aGen.Gen( _JUMPF, 0 ); pCond.reset(); diff --git a/basic/source/comp/sbcomp.cxx b/basic/source/comp/sbcomp.cxx index 9c2298eb8e97..491fa2ca585c 100644 --- a/basic/source/comp/sbcomp.cxx +++ b/basic/source/comp/sbcomp.cxx @@ -24,8 +24,8 @@ #include "sbobjmod.hxx" #include <svtools/miscopt.hxx> #include <stdio.h> -#include <boost/scoped_ptr.hpp> #include <rtl/character.hxx> +#include <memory> // To activate tracing enable in sbtrace.hxx #ifdef DBG_TRACE_BASIC @@ -943,7 +943,7 @@ bool SbModule::Compile() SbModule* pOld = GetSbData()->pCompMod; GetSbData()->pCompMod = this; - boost::scoped_ptr<SbiParser> pParser(new SbiParser( static_cast<StarBASIC*>(GetParent()), this )); + std::unique_ptr<SbiParser> pParser(new SbiParser( static_cast<StarBASIC*>(GetParent()), this )); while( pParser->Parse() ) {} if( !pParser->GetErrors() ) pParser->aGen.Save(); |