mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-22 13:56:37 +01:00
Use some C++17 features
This commit is contained in:
parent
45555c0e57
commit
0485e1877c
20 changed files with 170 additions and 245 deletions
|
|
@ -4,8 +4,8 @@
|
|||
* Lesser General Public License version 2.1 or any later version.
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
#include "operand.h"
|
||||
#include <cassert>
|
||||
|
||||
namespace Sirit {
|
||||
|
||||
|
|
@ -22,16 +22,12 @@ u16 Operand::GetWordCount() const {
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool Operand::operator==(const Operand& other) const {
|
||||
return false;
|
||||
}
|
||||
bool Operand::operator==(const Operand& other) const { return false; }
|
||||
|
||||
bool Operand::operator!=(const Operand& other) const {
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
OperandType Operand::GetType() const {
|
||||
return operand_type;
|
||||
}
|
||||
OperandType Operand::GetType() const { return operand_type; }
|
||||
|
||||
} // namespace Sirit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue