Commit 5f9bda14 by Prathamesh Kulkarni Committed by Prathamesh Kulkarni

tree.c (escaped_string::escape): Replace cast to char * by const_cast<char *> (unescaped).

2018-06-18  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

	* tree.c (escaped_string::escape): Replace cast to char * by
	const_cast<char *> (unescaped).

From-SVN: r261700
parent 663305df
2018-06-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* tree.c (escaped_string::escape): Replace cast to char * by
const_cast<char *> (unescaped).
2018-06-18 Nick Clifton <nickc@redhat.com> 2018-06-18 Nick Clifton <nickc@redhat.com>
PR 84195 PR 84195
......
...@@ -12454,7 +12454,7 @@ escaped_string::escape (const char *unescaped) ...@@ -12454,7 +12454,7 @@ escaped_string::escape (const char *unescaped)
if (m_owned) if (m_owned)
free (m_str); free (m_str);
m_str = (char *) unescaped; m_str = const_cast<char *> (unescaped);
m_owned = false; m_owned = false;
if (unescaped == NULL || *unescaped == 0) if (unescaped == NULL || *unescaped == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment