X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1693108cfeb77447c492714a0a7936c35a51c284..7da37f2c5d7addc655e3c6bcd29a8877c360b35b:/utils/tex2rtf/src/texutils.cpp diff --git a/utils/tex2rtf/src/texutils.cpp b/utils/tex2rtf/src/texutils.cpp index 58d5bb7076..eead3b6dfc 100644 --- a/utils/tex2rtf/src/texutils.cpp +++ b/utils/tex2rtf/src/texutils.cpp @@ -451,7 +451,7 @@ void ReadTexReferences(wxChar *filename) // were massive memory leaks TexReferences.DeleteContents(true); TexReferences.Put( - labelStr.c_str(), + labelStr, new TexRef( labelStr.c_str(), fileStr.c_str(), @@ -1526,7 +1526,7 @@ bool ReadCustomMacros(const wxString& filename) macro->macroBody = copystring(macroBody.c_str()); BibEatWhiteSpace(line); - CustomMacroList.Append(macroName.c_str(), macro); + CustomMacroList.Append(macroName, macro); AddMacroDef(ltCUSTOM_MACRO, macroName.c_str(), noArgs); }