reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 04f0ce1a9ad84a6a042a2faf2cc38c9d75149ce9
parent 2465956cdcd7c267dc50cdaa45b0a41bade6d453
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Fri, 29 Sep 2017 20:00:17 -0400

about: refactor AboutPackageDelegate::locate to use the new String::format utility

Diffstat:
Msrc/about.cpp | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/about.cpp b/src/about.cpp @@ -646,9 +646,8 @@ void AboutPackageDelegate::locate() if(!FS::exists(path)) return; - string arg("/select,\""); - arg += path.prependRoot().join(); - arg += '"'; + const string &arg = String::format(R"(/select,"%s")", + path.prependRoot().join().c_str()); Win32::shellExecute("explorer.exe", arg.c_str()); }