[gnote] Fix casting const away in actionmanager.cpp



commit e46e3d05ef2952ff0c7ba806d3fcab1af27343e8
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Sat Mar 17 17:44:18 2012 +0200

    Fix casting const away in actionmanager.cpp

 src/actionmanager.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index 28c4129..1874687 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -144,7 +144,7 @@ namespace gnote {
         if(!prop) {
           continue;
         }
-        if(xmlStrEqual(prop, (xmlChar*)placeholderName.c_str())) {
+        if(xmlStrEqual(prop, (const xmlChar*)placeholderName.c_str())) {
 
           // Return each child element's widget
           for(xmlNodePtr widgetNode = placeholderNode->children;



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