idl/inc/lex.hxx | 2 +- idl/source/cmptools/lex.cxx | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-)
New commits: commit 445bbffffd3c5d99aee1456dbbd42958c145fbaf Author: Stephan Bergmann <[email protected]> AuthorDate: Wed Jul 23 22:22:54 2025 +0200 Commit: Stephan Bergmann <[email protected]> CommitDate: Thu Jul 24 13:24:38 2025 +0200 SvToken assignment op can be implicitly defined Change-Id: If689901b1fa813d9fab553224d4865f922794282 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188264 Reviewed-by: Stephan Bergmann <[email protected]> Tested-by: Jenkins diff --git a/idl/inc/lex.hxx b/idl/inc/lex.hxx index 1ae48b412a76..9b0c724313ff 100644 --- a/idl/inc/lex.hxx +++ b/idl/inc/lex.hxx @@ -49,7 +49,7 @@ public: SvToken(); SvToken( const SvToken & rObj ) = delete; - SvToken & operator = ( const SvToken & rObj ); + SvToken & operator = ( const SvToken & rObj ) = default; OString GetTokenAsString() const; diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx index 4ca8362e82d1..52f292084d94 100644 --- a/idl/source/cmptools/lex.cxx +++ b/idl/source/cmptools/lex.cxx @@ -57,19 +57,6 @@ OString SvToken::GetTokenAsString() const return aStr; } -SvToken & SvToken::operator = ( const SvToken & rObj ) -{ - if( this != &rObj ) - { - nLine = rObj.nLine; - nColumn = rObj.nColumn; - nType = rObj.nType; - aString = rObj.aString; - nLong = rObj.nLong; - } - return *this; -} - void SvTokenStream::InitCtor() { aStrTrue = "TRUE"_ostr;
