diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-09-19 08:57:53 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-09-19 08:57:53 +0000 |
commit | 0737a2bfd72b8a09a9f72998fa911d184138cfaa (patch) | |
tree | d32b2ccfaf2c397c3fececf1093072de9616ea90 /pcrecpp.h | |
parent | dbb500d89f45990d3d78be57e1e0b74bdc4f2b1c (diff) | |
download | pcre-0737a2bfd72b8a09a9f72998fa911d184138cfaa.tar.gz |
Patches to C++ code to avoid compiler warnings.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@256 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp.h')
-rw-r--r-- | pcrecpp.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -491,10 +491,16 @@ class PCRECPP_EXP_DEFN RE { public: // We provide implicit conversions from strings so that users can // pass in a string or a "const char*" wherever an "RE" is expected. - RE(const char* pat) { Init(pat, NULL); } - RE(const char *pat, const RE_Options& option) { Init(pat, &option); } RE(const string& pat) { Init(pat, NULL); } RE(const string& pat, const RE_Options& option) { Init(pat, &option); } + RE(const char* pat) { Init(pat, NULL); } + RE(const char* pat, const RE_Options& option) { Init(pat, &option); } + RE(const unsigned char* pat) { + Init(reinterpret_cast<const char*>(pat), NULL); + } + RE(const unsigned char* pat, const RE_Options& option) { + Init(reinterpret_cast<const char*>(pat), &option); + } // Copy constructor & assignment - note that these are expensive // because they recompile the expression. |