summaryrefslogtreecommitdiff
path: root/plugins/QuickSearch/src/stdafx.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/QuickSearch/src/stdafx.h')
-rw-r--r--plugins/QuickSearch/src/stdafx.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/QuickSearch/src/stdafx.h b/plugins/QuickSearch/src/stdafx.h
index a6cd211e45..b5089aff12 100644
--- a/plugins/QuickSearch/src/stdafx.h
+++ b/plugins/QuickSearch/src/stdafx.h
@@ -355,23 +355,23 @@ class QSMainDlg : public CDlgBase
HGENMENU mnuhandle = 0;
// patterns
- wchar_t *pattern = nullptr; // edit field text
- wchar_t *patstr = nullptr; // edit field text
+ struct Pattern {
+ Pattern(const wchar_t *pwszText) :
+ str(pwszText)
+ {}
- struct
- {
- wchar_t *str;
- bool res;
- }
- static patterns[8];
+ const wchar_t *str;
+ bool res = false;
+ };
- int numpattern = 0;
+ OBJLIST<Pattern> m_patterns;
+ ptrW m_wszPatternBuf;
bool bShowOffline;
char *szFilterProto = nullptr;
- bool CheckPattern(CRowItem *);
- void MakePattern();
+ bool CheckPattern(CRowItem *pRow);
+ void MakePattern(const wchar_t *pwszPattern);
// controls
CTimer m_hover;