Skip to content

Commit aa5b0e3

Browse files
authored
Merge pull request stepcode#421 from stepcode/depcpy
Clear deprecated-copy warning from C++ class.
2 parents c81d05c + 9f35265 commit aa5b0e3

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/cldai/sdaiEnum.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ SDAI_BOOLEAN & SDAI_BOOLEAN::operator= ( const SDAI_LOGICAL & t ) {
313313
return *this;
314314
}
315315

316+
SDAI_BOOLEAN & SDAI_BOOLEAN::operator= ( const SDAI_BOOLEAN & t ) {
317+
v = t;
318+
return *this;
319+
}
320+
316321
SDAI_BOOLEAN & SDAI_BOOLEAN::operator= ( const Boolean t ) {
317322
v = t;
318323
return *this;

src/cldai/sdaiEnum.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ class SC_DAI_EXPORT SDAI_BOOLEAN :
138138

139139
operator ::Boolean() const;
140140
SDAI_BOOLEAN & operator=( const SDAI_LOGICAL & t );
141+
SDAI_BOOLEAN & operator=( const SDAI_BOOLEAN & t );
141142

142143
SDAI_BOOLEAN & operator=( const ::Boolean t );
143144
SDAI_LOGICAL operator==( const SDAI_LOGICAL & t ) const;

0 commit comments

Comments
 (0)