-// Copyright (C) 2015-2016 OPEN CASCADE
+// Copyright (C) 2015-2022 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
QStringListModel& model = replace ? myReplaceCompletion : myFindCompletion;
QStringList completions = model.stringList();
- if ( !text.isEmpty() and !completions.contains( text ) )
+ if ( !text.isEmpty() && !completions.contains( text ) )
{
completions.prepend( text );
model.setStringList( completions );