]> granicus.if.org Git - graphviz/commit
use isEmpty in preference to checking length against 0 in gvedit
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 13 May 2021 00:08:31 +0000 (17:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 19 May 2021 02:42:15 +0000 (19:42 -0700)
commitac4217ef2f9a40288359b74102c91ed18a5eebe4
tree4c662f4f2b1b19f002c50b39bbdfdb72cdaeda9f
parentc981f3c27a2bc0d401cbf244a61dbc46160448d2
use isEmpty in preference to checking length against 0 in gvedit

Qt QStrings have two methods, isEmpty and length, analogous to empty and length
on std::string, respectively. Checking isEmpty is equivalent to checking length
against 0, is clearer, and has the potential to be more performant.
cmd/gvedit/csettings.cpp
cmd/gvedit/mainwindow.cpp