banshee r3067 - in trunk/banshee: . src/Core/Hyena/Hyena.Data.Sqlite



Author: gburt
Date: Mon Jan 28 21:15:11 2008
New Revision: 3067
URL: http://svn.gnome.org/viewvc/banshee?rev=3067&view=rev

Log:
2008-01-28  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Hyena/Hyena.Data.Sqlite/HyenaSqliteCommand.cs: Access each char
	of the command in place instead of assigning it to a variable, when
	scanning it for ?'s.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Hyena/Hyena.Data.Sqlite/HyenaSqliteCommand.cs

Modified: trunk/banshee/src/Core/Hyena/Hyena.Data.Sqlite/HyenaSqliteCommand.cs
==============================================================================
--- trunk/banshee/src/Core/Hyena/Hyena.Data.Sqlite/HyenaSqliteCommand.cs	(original)
+++ trunk/banshee/src/Core/Hyena/Hyena.Data.Sqlite/HyenaSqliteCommand.cs	Mon Jan 28 21:15:11 2008
@@ -59,8 +59,8 @@
             this.command = new SqliteCommand (command);
 
             int num_params = 0;
-            foreach (char c in command) {
-                if (c == '?') {
+            for (int i = 0; i < command.Length; i++) {
+                if (command [i] == '?') {
                     num_params++;
                 }
             }



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