projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add -Wpointer-arith -Wcast-qual -Wcast-align and others to compile flags, and fix...
[ardour.git]
/
libs
/
pbd
/
locale_guard.cc
diff --git
a/libs/pbd/locale_guard.cc
b/libs/pbd/locale_guard.cc
index 30fdeadebae5ee8a9ee44f9f90a55dcec3d78b52..3b8fa7132e2c371e6c3a7a0fbfcc59062c6ee91a 100644
(file)
--- a/
libs/pbd/locale_guard.cc
+++ b/
libs/pbd/locale_guard.cc
@@
-23,7
+23,7
@@
LocaleGuard::~LocaleGuard ()
setlocale (LC_NUMERIC, old);
if (old) {
- free (
(char*)old
);
+ free (
const_cast<char*>(old)
);
}
}