reapack

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

commit 5f97cb4aae6c893a7cc4e079bd84275d3f4a4c9a
parent a22bd242f5c69b5fe8aee82bded60f15822ef5ac
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Tue,  8 Mar 2016 03:13:39 -0500

some refactoring over e073e5e5f72c146897773aaa12d342e2dc1aae23 changes

Diffstat:
Msrc/import.cpp | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/import.cpp b/src/import.cpp @@ -86,16 +86,13 @@ void Import::fetch() auto_string url(4096, 0); GetWindowText(m_url, &url[0], (int)url.size()); - const size_t end = url.find(AUTO_STR('\0')); + // remove extra nulls from the string + url.resize(url.find(AUTO_STR('\0'))); - if(end == 0) { // url is empty + if(url.empty()) { close(); return; } - else { - // remove extra nulls from the string - url.resize(end); - } setWaiting(true);