mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QString starts empty, do not set "" as empty string.
Let's not be evil by creating "" as empty strings inside of the code, really. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
30770f5d85
commit
ec2ea7ec3a
1 changed files with 1 additions and 2 deletions
|
@ -120,8 +120,7 @@ void TagWidget::reparse()
|
|||
QString currentText;
|
||||
if (pos.first >= 0 && pos.second > 0)
|
||||
currentText = text().mid(pos.first, pos.second - pos.first).trimmed();
|
||||
else
|
||||
currentText = "";
|
||||
|
||||
if (m_completer) {
|
||||
m_completer->setCompletionPrefix(currentText);
|
||||
if (m_completer->completionCount() == 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue