|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #54231] GUI attempts to open file for function declared at top-level |
Date: | Sun, 8 Jul 2018 00:51:12 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Follow-up Comment #13, bug #54231 (project octave): @Torsten: In the patch, is there a specific reason to convert to Qstring from std::string in order to compare it to a constant? The C++ std::string class implements the '==' operator. + QString type = QString::fromStdString ( + map.contents ("type").data ()[0].string_value ()); + if (type == QString ("command-line function")) Seems like you could just keep type as std::string. + std::string type = map.contents ("type").data ()[0].string_value ()); + if (type == "command-line function") _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?54231> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |