patches/wesnoth-06-fixreturn.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2043 60746dbf40fe
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

--- wesnoth-1.6a/src/gui/widgets/generator_private.hpp.fixreturn	2009-03-22 11:27:47.024326316 +0100
+++ wesnoth-1.6a/src/gui/widgets/generator_private.hpp	2009-03-22 11:31:27.221842861 +0100
@@ -170,7 +170,7 @@
 	 * @return                    The best size,
 	 */
 	tpoint calculate_best_size() const
-		{ ERROR_LOG(false); }
+		{ ERROR_LOG(false); return tpoint(0,0);}
 
 	/**
 	 * Sets the size of the generator.
@@ -198,11 +198,11 @@
 		{ ERROR_LOG(false); }
 
 	/** Inherited from tgenerator_. */
-	twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); }
+	twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); return NULL;}
 
 	/** Inherited from tgenerator_. */
 	const twidget* find_widget(const tpoint&, const bool) const
-		{ ERROR_LOG(false); }
+		{ ERROR_LOG(false); return NULL;}
 
 	/***** ***** ***** ***** keyboard functions ***** ***** ***** *****/
 
@@ -299,7 +299,7 @@
 
 	/** See thorizontal_list::calculate_best_size(). */
 	tpoint calculate_best_size() const
-		{ ERROR_LOG(false); }
+		{ ERROR_LOG(false); return tpoint(0,0);}
 
 	/** See thorizontal_list::set_size(). */
 	void set_size(const tpoint& /*origin*/, const tpoint& /*size*/)
@@ -314,11 +314,11 @@
 		{ ERROR_LOG(false); }
 
 	/** See thorizontal_list::find_widget(). */
-	twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); }
+	twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); return NULL; }
 
 	/** See thorizontal_list::find_widget(). */
 	const twidget* find_widget(const tpoint&, const bool) const
-		{ ERROR_LOG(false); }
+		{ ERROR_LOG(false); return NULL; }
 
 	/***** ***** ***** ***** keyboard functions ***** ***** ***** *****/
 
@@ -354,7 +354,7 @@
 
 	/** See thorizontal_list::calculate_best_size(). */
 	tpoint calculate_best_size() const
-		{ ERROR_LOG(false); }
+		{ ERROR_LOG(false); return tpoint(0, 0); }
 
 	/** See thorizontal_list::set_size(). */
 	void set_size(const tpoint& /*origin*/, const tpoint& /*size*/)
@@ -369,11 +369,11 @@
 		{ ERROR_LOG(false); }
 
 	/** See thorizontal_list::find_widget(). */
-	twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); }
+	twidget* find_widget(const tpoint&, const bool) { ERROR_LOG(false); return NULL;}
 
 	/** See thorizontal_list::find_widget(). */
 	const twidget* find_widget(const tpoint&, const bool) const
-		{ ERROR_LOG(false); }
+		{ ERROR_LOG(false); return NULL;}
 
 	/***** ***** ***** ***** keyboard functions ***** ***** ***** *****/