Use generic `toInt()` function which relies less on compiler optimizations
This commit is contained in:
parent
dfe7759116
commit
9f2e2819c6
|
@ -100,7 +100,7 @@ set(REQUIRED_ICONS
|
|||
window-pin)
|
||||
|
||||
# find c++utilities
|
||||
find_package(${PACKAGE_NAMESPACE_PREFIX}c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.19.0 REQUIRED)
|
||||
find_package(${PACKAGE_NAMESPACE_PREFIX}c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.21.0 REQUIRED)
|
||||
use_cpp_utilities()
|
||||
|
||||
# find qtutilities
|
||||
|
|
|
@ -168,7 +168,7 @@ void SingleInstance::readArgs()
|
|||
socket->deleteLater();
|
||||
|
||||
// reconstruct argc and argv array
|
||||
const auto argc = BE::toUInt16(argData.data());
|
||||
const auto argc = BE::toInt<std::uint16_t>(argData.data());
|
||||
auto args = std::vector<const char *>();
|
||||
args.reserve(argc + 1);
|
||||
std::cerr << Phrases::Info << "Evaluating " << argc << " arguments from another instance: " << Phrases::End;
|
||||
|
|
Loading…
Reference in New Issue