mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-30 19:15:48 +02:00
"new"->"NEW" in comments, easier to find remaining naked operator new
This commit is contained in:
@@ -214,7 +214,7 @@ bool XMLTagHandler::ReadXMLTag(const char *tag, const char **attrs)
|
||||
}
|
||||
|
||||
// JKC: Previously the next line was:
|
||||
// const char **out_attrs = new char (const char *)[tmp_attrs.GetCount()+1];
|
||||
// const char **out_attrs = NEW char (const char *)[tmp_attrs.GetCount()+1];
|
||||
// however MSVC doesn't like the constness in this position, so this is now
|
||||
// added by a cast after creating the array of pointers-to-non-const chars.
|
||||
const wxChar **out_attrs = (const wxChar**)new wxChar *[tmp_attrs.GetCount()+1];
|
||||
|
||||
Reference in New Issue
Block a user