Преглед на файлове

Remove unnecessary virtuals

nordsoft преди 2 години
родител
ревизия
fbf5492fd9
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 2 2
      lib/rewardable/Limiter.h
  2. 1 1
      lib/rewardable/Reward.h

+ 2 - 2
lib/rewardable/Limiter.h

@@ -78,12 +78,12 @@ struct DLL_LINKAGE Limiter final
 	LimitersList noneOf;
 
 	Limiter();
-	virtual ~Limiter();
+	~Limiter();
 
 	bool heroAllowed(const CGHeroInstance * hero) const;
 	
 	/// Generates list of components that describes reward for a specific hero
-	virtual void loadComponents(std::vector<Component> & comps,
+	void loadComponents(std::vector<Component> & comps,
 								const CGHeroInstance * h) const;
 
 	template <typename Handler> void serialize(Handler &h, const int version)

+ 1 - 1
lib/rewardable/Reward.h

@@ -78,7 +78,7 @@ struct DLL_LINKAGE Reward final
 	bool removeObject;
 
 	/// Generates list of components that describes reward for a specific hero
-	virtual void loadComponents(std::vector<Component> & comps,
+	void loadComponents(std::vector<Component> & comps,
 								const CGHeroInstance * h) const;
 	
 	Component getDisplayedComponent(const CGHeroInstance * h) const;