瀏覽代碼

Make attribute accessor base class abstract to avoid unused parameter warnings when including Attribute.h. The base class is not useful in any case.

Lasse Öörni 11 年之前
父節點
當前提交
36175d471f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Source/Engine/Core/Attribute.h

+ 3 - 3
Source/Engine/Core/Attribute.h

@@ -49,14 +49,14 @@ static const unsigned AM_NODEIDVECTOR = 0x40;
 
 class Serializable;
 
-/// Internal helper class for invoking attribute accessors.
+/// Abstract base class for invoking attribute accessors.
 class URHO3D_API AttributeAccessor : public RefCounted
 {
 public:
     /// Get the attribute.
-    virtual void Get(const Serializable* ptr, Variant& dest) const {}
+    virtual void Get(const Serializable* ptr, Variant& dest) const = 0;
     /// Set the attribute.
-    virtual void Set(Serializable* ptr, const Variant& src) {}
+    virtual void Set(Serializable* ptr, const Variant& src) = 0;
 };
 
 /// Description of an automatically serializable variable.