[dia] [warningectomy] expression result unused
- From: Hans Breuer <hans src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [dia] [warningectomy] expression result unused
 
- Date: Mon, 20 May 2013 14:50:37 +0000 (UTC)
 
commit 867c7058ad55fbe7e1fa081bccae55bf4e601ff3
Author: Hans Breuer <hans breuer org>
Date:   Mon May 20 16:18:50 2013 +0200
    [warningectomy] expression result unused
    
    Found by clang, missing return.
 bindings/dia-connections.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bindings/dia-connections.cpp b/bindings/dia-connections.cpp
index a2a554c..3c00491 100644
--- a/bindings/dia-connections.cpp
+++ b/bindings/dia-connections.cpp
@@ -61,7 +61,7 @@ int
 dia::Connections::len () const
 {
     if (object)
-        object->num_connections;
+        return object->num_connections;
     return 0;
 }
 //! return back a single property
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]