summaryrefslogtreecommitdiffstats
path: root/extra/edelib/edelib-2.0-beta.c++.patch
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2009-12-16 23:33:14 +0100
committertnut <thierryn1 at hispeed dot ch>2009-12-16 23:33:14 +0100
commit7c71a89d35bdbecc6a002eaba0cbf68ead746f43 (patch)
treec14ab4a85af204e0e4fa56dddf6bdaf706756422 /extra/edelib/edelib-2.0-beta.c++.patch
parent045f6790bc7f5903227c34fff819bbb12136e37b (diff)
downloadnutyx-extra-7c71a89d35bdbecc6a002eaba0cbf68ead746f43.tar.gz
nutyx-extra-7c71a89d35bdbecc6a002eaba0cbf68ead746f43.tar.bz2
nutyx-extra-7c71a89d35bdbecc6a002eaba0cbf68ead746f43.tar.xz
nutyx-extra-7c71a89d35bdbecc6a002eaba0cbf68ead746f43.zip
Ajout de edelib#2.0-beta-1
Diffstat (limited to 'extra/edelib/edelib-2.0-beta.c++.patch')
-rwxr-xr-xextra/edelib/edelib-2.0-beta.c++.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/edelib/edelib-2.0-beta.c++.patch b/extra/edelib/edelib-2.0-beta.c++.patch
new file mode 100755
index 000000000..ea1b7740b
--- /dev/null
+++ b/extra/edelib/edelib-2.0-beta.c++.patch
@@ -0,0 +1,24 @@
+diff -u edelib-2.0-beta.orig/src/IconChooser.cpp edelib-2.0-beta/src/IconChooser.cpp
+--- edelib-2.0-beta.orig/src/IconChooser.cpp 2009-10-08 10:43:55.000000000 -0300
++++ edelib-2.0-beta/src/IconChooser.cpp 2009-10-10 10:58:52.000000000 -0300
+@@ -82,7 +82,7 @@
+ iconpth.assign(s);
+
+ /* get basename without extension */
+- ptr = strrchr(s.c_str(), E_DIR_SEPARATOR);
++ ptr = const_cast<char*>(strrchr(s.c_str(), E_DIR_SEPARATOR));
+ if(ptr) {
+ ptr += 1;
+ char* ptr2 = strrchr(ptr, '.');
+diff -u edelib-2.0-beta.orig/src/String.cpp edelib-2.0-beta/src/String.cpp
+--- edelib-2.0-beta.orig/src/String.cpp 2009-10-08 10:43:55.000000000 -0300
++++ edelib-2.0-beta/src/String.cpp 2009-10-10 10:31:05.000000000 -0300
+@@ -262,7 +262,7 @@
+ if(offset >= length())
+ return npos;
+
+- char* p = strstr(data() + offset, str);
++ const char* p = strstr(data() + offset, str);
+ if(!p)
+ return npos;
+ else