f-spot r4626 - in trunk: . src/Core



Author: sdelcroix
Date: Wed Nov 26 14:12:14 2008
New Revision: 4626
URL: http://svn.gnome.org/viewvc/f-spot?rev=4626&view=rev

Log:
avoid double cast

2008-11-26  Stephane Delcroix  <sdelcroix novell com>

	* src/Core/Category.cs: avoid double cast

Modified:
   trunk/ChangeLog
   trunk/src/Core/Category.cs

Modified: trunk/src/Core/Category.cs
==============================================================================
--- trunk/src/Core/Category.cs	(original)
+++ trunk/src/Core/Category.cs	Wed Nov 26 14:12:14 2008
@@ -34,11 +34,10 @@
 				if (! list.Contains (tag))
 					list.Add (tag);
 	
-				if (! (tag is Category))
-					continue;
-	
 				Category cat = tag as Category;
-	
+				if (cat == null)
+					continue;
+		
 				cat.AddDescendentsTo (list);
 			}
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]