remove compilation warning
authorJulien de Kozak <jdekozak@hotmail.com>
Sun, 23 Jun 2013 11:37:50 +0000 (13:37 +0200)
committerJulien de Kozak <jdekozak@hotmail.com>
Sun, 23 Jun 2013 11:37:50 +0000 (13:37 +0200)
gtk2_ardour/editor.cc

index 761404ba18af84409cfae1c2e7940ed878f4f160..d3e3ae98281d455920778d8c219607ecd1f66f06 100644 (file)
@@ -3125,12 +3125,12 @@ Editor::convert_drop_to_paths (
                */
 
                string txt = data.get_text();
-               const char* p;
+               char* p;
                const char* q;
 
-               p = (const char *) malloc (txt.length() + 1);
-               txt.copy (const_cast<char *> (p), txt.length(), 0);
-               const_cast<char*>(p)[txt.length()] = '\0';
+               p = (char *) malloc (txt.length() + 1);
+               txt.copy (p, txt.length(), 0);
+               p[txt.length()] = '\0';
 
                while (p)
                {