diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-08-10 15:57:09 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-08-10 15:57:09 +0000 |
commit | 760ccbabfbec67d80c3bdac9c0803ecf7d1742b6 (patch) | |
tree | a8cbb70fbf1d1aab7eb24310d70be94dee292453 /gtk2_ardour/editor.cc | |
parent | 69ca705286383df96b337cc93428f95bd7623345 (diff) |
add -Wpointer-arith -Wcast-qual -Wcast-align and others to compile flags, and fix const cast warnings generated by new flags
git-svn-id: svn://localhost/ardour2/branches/3.0@13124 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index fc85704781..5d92ccb08e 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -3112,8 +3112,8 @@ Editor::convert_drop_to_paths ( const char* q; p = (const char *) malloc (txt.length() + 1); - txt.copy ((char *) p, txt.length(), 0); - ((char*)p)[txt.length()] = '\0'; + txt.copy (const_cast<char *> (p), txt.length(), 0); + const_cast<char*>(p)[txt.length()] = '\0'; while (p) { |