summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-24 14:56:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-24 14:56:33 +0000
commit2f28d4cb509676a01cca5c18823309293faefef3 (patch)
treee7d636d2e387334a42eca7437b5b7acdc5611837 /plugins/SmileyAdd/src
parent0bcb3eb5504e5614c0a499269f0c8ea7e5b58127 (diff)
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
Diffstat (limited to 'plugins/SmileyAdd/src')
-rw-r--r--plugins/SmileyAdd/src/bkstring.h2
-rw-r--r--plugins/SmileyAdd/src/regexp/WCPattern.cpp4
2 files changed, 2 insertions, 4 deletions
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;