summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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;