From 2f28d4cb509676a01cca5c18823309293faefef3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Jun 2013 14:56:33 +0000 Subject: ok, wassup lib is not dependent on Miranda again git-svn-id: http://svn.miranda-ng.org/main/trunk@5121 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SmileyAdd/src/bkstring.h | 2 +- plugins/SmileyAdd/src/regexp/WCPattern.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/bkstring.h b/plugins/SmileyAdd/src/bkstring.h index 552eeb9e3f..3a43c2bece 100644 --- a/plugins/SmileyAdd/src/bkstring.h +++ b/plugins/SmileyAdd/src/bkstring.h @@ -159,7 +159,7 @@ public: bkstring& operator += (const value_type _Ch) { return append(1, _Ch); } - value_type& operator[] (int ind) const + value_type& operator[] (size_t ind) const { return buf[ind]; } friend bkstring operator+ (const bkstring& _Str1, const bkstring& _Str2) diff --git a/plugins/SmileyAdd/src/regexp/WCPattern.cpp b/plugins/SmileyAdd/src/regexp/WCPattern.cpp index 3ab5e35f88..e44c835b39 100644 --- a/plugins/SmileyAdd/src/regexp/WCPattern.cpp +++ b/plugins/SmileyAdd/src/regexp/WCPattern.cpp @@ -624,9 +624,7 @@ NFAUNode * WCPattern::parseRegisteredWCPattern(NFAUNode ** end) (pattern[j] >= (wchar_t)'a' && pattern[j] <= (wchar_t)'z') || (pattern[j] >= (wchar_t)'A' && pattern[j] <= (wchar_t)'Z') || (pattern[j] >= (wchar_t)'0' && pattern[j] <= (wchar_t)'9') || - (pattern[j] == (wchar_t)'_') - ) - ) + (pattern[j] == (wchar_t)'_'))) { raiseError(); return NULL; -- cgit v1.2.3