From 35050efe3afdaa1ddf56d3efcd579c547bd2e7b5 Mon Sep 17 00:00:00 2001 From: leozide Date: Thu, 13 Apr 2017 17:07:29 -0700 Subject: [PATCH] Compiler feature test. --- common/piece.cpp | 2 +- common/piece.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/piece.cpp b/common/piece.cpp index 53793286..85b5fa26 100644 --- a/common/piece.cpp +++ b/common/piece.cpp @@ -20,7 +20,7 @@ lcPiece::lcPiece(PieceInfo* Info) : lcObject(LC_OBJECT_PIECE) { - mMesh = NULL; + mMesh = nullptr; SetPieceInfo(Info, true); mState = 0; mColorIndex = gDefaultColor; diff --git a/common/piece.h b/common/piece.h index 0fdf520d..ffb31f18 100644 --- a/common/piece.h +++ b/common/piece.h @@ -59,7 +59,7 @@ public: lcPiece(const lcPiece& Other); ~lcPiece(); - virtual bool IsSelected() const + virtual bool IsSelected() const override { return (mState & LC_PIECE_SELECTION_MASK) != 0; }