mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
add const
This commit is contained in:
parent
cf2a658ac7
commit
7a39c40936
@ -36,8 +36,9 @@ std::wstring DispatchSentenceToExtensions(std::wstring sentence, std::unordered_
|
||||
{
|
||||
while (processing < 0) Sleep(10);
|
||||
processing++;
|
||||
wchar_t* sentenceBuffer = new wchar_t[sentence.size() + 1];
|
||||
wcscpy(sentenceBuffer, sentence.c_str());
|
||||
wchar_t* sentenceOrigBuffer = new wchar_t[sentence.size() + 1];
|
||||
wcscpy(sentenceOrigBuffer, sentence.c_str());
|
||||
const wchar_t* sentenceBuffer = sentenceOrigBuffer;
|
||||
InfoForExtension* miscInfoLinkedList = new InfoForExtension;
|
||||
InfoForExtension* miscInfoTraverser = miscInfoLinkedList;
|
||||
for (auto i : miscInfo)
|
||||
|
@ -16,7 +16,7 @@ struct InfoForExtension
|
||||
int propertyValue;
|
||||
InfoForExtension* nextProperty;
|
||||
};
|
||||
typedef wchar_t*(*ExtensionFunction)(wchar_t*, InfoForExtension*);
|
||||
typedef const wchar_t*(*ExtensionFunction)(const wchar_t*, InfoForExtension*);
|
||||
extern QComboBox* ttCombo;
|
||||
|
||||
#endif // EXTENSIONS_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user