Browse Source

Add NOLINT to prevent false positive from modernize-redundant-void-arg.
The "void" keyword being flagged up in this case cannot be actually removed, so this is really a bug in the check in question to confuse "typeid" as a function.

Yao Wei Tjong 姚伟忠 8 years ago
parent
commit
a5c2e95b15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/Core/Variant.h

+ 1 - 1
Source/Urho3D/Core/Variant.h

@@ -174,7 +174,7 @@ private:
 
 public:
     /// Construct empty.
-    CustomVariantValue() : typeInfo_(typeid(void)) { }
+    CustomVariantValue() : typeInfo_(typeid(void)) { }      // NOLINT
     /// Destruct.
     virtual ~CustomVariantValue() = default;