diff options
author | tnut <thierryn1 at hispeed dot ch> | 2009-12-16 23:33:14 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2009-12-16 23:33:14 +0100 |
commit | 7c71a89d35bdbecc6a002eaba0cbf68ead746f43 (patch) | |
tree | c14ab4a85af204e0e4fa56dddf6bdaf706756422 /extra/edelib/edelib-2.0-beta.c++.patch | |
parent | 045f6790bc7f5903227c34fff819bbb12136e37b (diff) | |
download | nutyx-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-x | extra/edelib/edelib-2.0-beta.c++.patch | 24 |
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 |