[rygel] core: Correct order of operands



commit 66239c4c1bdc21cf66d6ad7c91636f960d58840b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Nov 5 16:51:00 2009 +0200

    core: Correct order of operands

 src/rygel/rygel-relational-expression.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-relational-expression.vala b/src/rygel/rygel-relational-expression.vala
index a1350ee..cba71b1 100644
--- a/src/rygel/rygel-relational-expression.vala
+++ b/src/rygel/rygel-relational-expression.vala
@@ -84,9 +84,9 @@ public class Rygel.RelationalExpression :
         case SearchCriteriaOp.EQ:
             return this.operand2 == str;
         case SearchCriteriaOp.CONTAINS:
-            return this.operand2.contains (str);
+            return str.contains (this.operand2);
         case SearchCriteriaOp.DERIVED_FROM:
-            return this.operand2.has_prefix (str);
+            return str.has_prefix (this.operand2);
         default:
             return false;
         }



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