sys: Updated more code to libwolv

This commit is contained in:
WerWolv
2023-03-13 08:58:08 +01:00
parent fb2e668589
commit 55f9faea10
8 changed files with 8 additions and 41 deletions

View File

@@ -316,8 +316,7 @@ namespace hex::plugin::builtin {
}
if (drawDefaultTextEditingTextBox(address, this->m_inputBuffer, ImGuiInputTextFlags_None)) {
hex::trim(this->m_inputBuffer);
if (auto result = hex::parseBinaryString(this->m_inputBuffer); result.has_value()) {
if (auto result = hex::parseBinaryString(wolv::util::trim(this->m_inputBuffer)); result.has_value()) {
*data = result.value();
return true;
}

View File

@@ -294,9 +294,8 @@ namespace hex::plugin::builtin {
if (yr_compiler_add_file(compiler, file.getHandle(), nullptr, nullptr) != 0) {
std::string errorMessage(0xFFFF, '\x00');
yr_compiler_get_error_message(compiler, errorMessage.data(), errorMessage.size());
hex::trim(errorMessage);
TaskManager::doLater([this, errorMessage] {
TaskManager::doLater([this, errorMessage = wolv::util::trim(errorMessage)] {
this->clearResult();
this->m_consoleMessages.push_back("Error: " + errorMessage);