[cheese/three-point-oh] do not use var, use the correct type of variables



commit 9a163ff62152d3b269d2ba0bc0dcad3421d7afd2
Author: daniel g. siegel <dgsiegel gnome org>
Date:   Tue Jul 13 22:45:52 2010 +0200

    do not use var, use the correct type of variables

 src/cheese-window.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 6bbda81..2979c13 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -187,8 +187,8 @@ public class Cheese.MainWindow : Gtk.Window
     try {
         File file_to_trash;
         FileInfo file_info;
-        var directory = File.new_for_path (fileutil.get_photo_path ());
-        var enumerator = directory.enumerate_children (FILE_ATTRIBUTE_STANDARD_NAME, 0, null);
+        File directory = File.new_for_path (fileutil.get_photo_path ());
+        FileEnumerator enumerator = directory.enumerate_children (FILE_ATTRIBUTE_STANDARD_NAME, 0, null);
 
         while ((file_info = enumerator.next_file (null)) != null) {
           file_to_trash = File.new_for_path (fileutil.get_photo_path () + GLib.Path.DIR_SEPARATOR_S + file_info.get_name ());



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