mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-11-04 12:34:39 +08:00 
			
		
		
		
	Merge pull request #684 from lioncash/nonmember
game_list: Make ContainsAllWords an internally linked non-member function
This commit is contained in:
		
						commit
						2975f7820e
					
				@ -139,7 +139,7 @@ GameList::SearchField::SearchField(GameList* parent) : QWidget{parent} {
 | 
			
		||||
 * @param userinput String containing all words getting checked
 | 
			
		||||
 * @return true if the haystack contains all words of userinput
 | 
			
		||||
 */
 | 
			
		||||
bool GameList::ContainsAllWords(const QString& haystack, const QString& userinput) const {
 | 
			
		||||
static bool ContainsAllWords(const QString& haystack, const QString& userinput) {
 | 
			
		||||
    const QStringList userinput_split =
 | 
			
		||||
        userinput.split(' ', QString::SplitBehavior::SkipEmptyParts);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -89,7 +89,6 @@ private:
 | 
			
		||||
 | 
			
		||||
    void PopupContextMenu(const QPoint& menu_location);
 | 
			
		||||
    void RefreshGameDirectory();
 | 
			
		||||
    bool ContainsAllWords(const QString& haystack, const QString& userinput) const;
 | 
			
		||||
 | 
			
		||||
    SearchField* search_field;
 | 
			
		||||
    GMainWindow* main_window = nullptr;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user