We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fec3be commit 646168aCopy full SHA for 646168a
include/tvision/views.h
@@ -211,6 +211,7 @@ class TCommandSet
211
212
TCommandSet() noexcept;
213
TCommandSet( const TCommandSet& ) noexcept;
214
+ TCommandSet& operator = ( const TCommandSet& ) noexcept;
215
216
Boolean has( int cmd ) noexcept;
217
source/tvision/tcmdset.cpp
@@ -34,9 +34,15 @@ TCommandSet::TCommandSet() noexcept
34
}
35
36
TCommandSet::TCommandSet( const TCommandSet& tc ) noexcept
37
+{
38
+ *this = tc;
39
+}
40
+
41
+TCommandSet& TCommandSet::operator = ( const TCommandSet& tc ) noexcept
42
{
43
for( int i = 0; i < 32; i++ )
44
cmds[i] = tc.cmds[i];
45
+ return *this;
46
47
48
Boolean TCommandSet::has( int cmd ) noexcept
0 commit comments