tweak StringOutputStream use

auto str = StringOutputStream()(bla) use form was not doing copy elision or move, but copy
This commit is contained in:
Garux
2024-01-29 16:54:08 +06:00
parent b4e44bc8ed
commit df02774ff5
122 changed files with 984 additions and 1204 deletions

View File

@@ -28,7 +28,7 @@
void OpenURL( const char *url ){
// let's put a little comment
globalOutputStream() << "OpenURL: " << url << "\n";
globalOutputStream() << "OpenURL: " << url << '\n';
// QUrl::fromUserInput appears to work well for urls and local paths with spaces
// alternatively can prepend file:/// to the latter and use default QUrl contructor
if ( !QDesktopServices::openUrl( QUrl::fromUserInput( url ) ) ) {