Kaydet (Commit) e6ab9174 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

basic: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)

...by removing explicitly user-provided functions that do the same as their
implicitly-defined counterparts, but may prevent implicitly declared copy
functions from being defined as non-deleted in the future.  (Even if a dtor was
declared non-inline in an include file, the apparently-used implicitly-defined
copy functions are already inline, so why bother with a non-inline dtor.)

Change-Id: I8a31ab0c806cb0f3c226d217f152a205aff6c07f
Reviewed-on: https://gerrit.libreoffice.org/58065
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst d9f81ecb
...@@ -53,9 +53,6 @@ SbiScanner::SbiScanner( const OUString& rBuf, StarBASIC* p ) : aBuf( rBuf ) ...@@ -53,9 +53,6 @@ SbiScanner::SbiScanner( const OUString& rBuf, StarBASIC* p ) : aBuf( rBuf )
nSaveLineIdx = -1; nSaveLineIdx = -1;
} }
SbiScanner::~SbiScanner()
{}
void SbiScanner::LockColumn() void SbiScanner::LockColumn()
{ {
if( !nColLock++ ) if( !nColLock++ )
......
...@@ -217,11 +217,6 @@ SbiTokenizer::SbiTokenizer( const OUString& rSrc, StarBASIC* pb ) ...@@ -217,11 +217,6 @@ SbiTokenizer::SbiTokenizer( const OUString& rSrc, StarBASIC* pb )
{ {
} }
SbiTokenizer::~SbiTokenizer()
{
}
void SbiTokenizer::Push( SbiToken t ) void SbiTokenizer::Push( SbiToken t )
{ {
if( ePush != NIL ) if( ePush != NIL )
......
...@@ -67,7 +67,6 @@ protected: ...@@ -67,7 +67,6 @@ protected:
void GenError( ErrCode ); void GenError( ErrCode );
public: public:
SbiScanner( const OUString&, StarBASIC* = nullptr ); SbiScanner( const OUString&, StarBASIC* = nullptr );
~SbiScanner();
void EnableErrors() { bError = false; } void EnableErrors() { bError = false; }
bool IsHash() { return bHash; } bool IsHash() { return bHash; }
......
...@@ -111,7 +111,6 @@ protected: ...@@ -111,7 +111,6 @@ protected:
bool bErrorIsSymbol; // Handle Error token as Symbol, not keyword bool bErrorIsSymbol; // Handle Error token as Symbol, not keyword
public: public:
SbiTokenizer( const OUString&, StarBASIC* = nullptr ); SbiTokenizer( const OUString&, StarBASIC* = nullptr );
~SbiTokenizer();
bool IsEof() { return bEof; } bool IsEof() { return bEof; }
bool IsEos() { return bEos; } bool IsEos() { return bEos; }
......
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