[rygel/wip/phako/remove-warnings: 9/14] lms: Fix potential null access warnings
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/phako/remove-warnings: 9/14] lms: Fix potential null access warnings
- Date: Thu, 13 Feb 2020 23:45:02 +0000 (UTC)
commit 5df0a4efbde22f77baa67648809ecc2fe395b862
Author: Jens Georg <mail jensge org>
Date: Thu Feb 13 23:54:43 2020 +0100
lms: Fix potential null access warnings
src/plugins/lms/rygel-lms-category-container.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/lms/rygel-lms-category-container.vala
b/src/plugins/lms/rygel-lms-category-container.vala
index 4ff3cce0..46456db2 100644
--- a/src/plugins/lms/rygel-lms-category-container.vala
+++ b/src/plugins/lms/rygel-lms-category-container.vala
@@ -188,10 +188,10 @@ public abstract class Rygel.LMS.CategoryContainer : Rygel.MediaContainer,
if (expression is LogicalExpression) {
return CategoryContainer.logical_expression_to_sql
- (expression as LogicalExpression, args);
+ ((LogicalExpression) expression, args);
} else {
return CategoryContainer.relational_expression_to_sql
- (expression as RelationalExpression,
+ ((RelationalExpression) expression,
args);
}
}
@@ -320,7 +320,7 @@ public abstract class Rygel.LMS.CategoryContainer : Rygel.MediaContainer,
object = child;
} else {
/* try grandchildren */
- var container = child as CategoryContainer;
+ var container = (CategoryContainer) child;
object = yield container.find_object (id, cancellable);
/* tell object to keep a reference to the parent --
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]