X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2Fexceptions.cpp;h=ea8aa40f44832f99485c6597c61b07fa510fd550;hp=1d0e88386b9958c34602bd9b01ec221bf5fc886f;hb=a5e86d37cf40004e6a43a21ab67d26695fa8619c;hpb=7a76ad29ed3e8fea449036d0923986f61408bf1f diff --git a/xmltooling/exceptions.cpp b/xmltooling/exceptions.cpp index 1d0e883..ea8aa40 100644 --- a/xmltooling/exceptions.cpp +++ b/xmltooling/exceptions.cpp @@ -33,6 +33,7 @@ #include using namespace xmltooling; +using namespace xercesc; using namespace std; using xmlconstants::XMLTOOLING_NS; @@ -129,13 +130,13 @@ inline const char* get_digit_character() return s_mid; } -inline const char* unsigned_integer_to_string(char* buf, size_t cchBuf, int i) +inline const char* unsigned_integer_to_string(char* buf, size_t cchBuf, size_t i) { char* psz=buf + cchBuf - 1; // Set psz to last char *psz = 0; // Set terminating null do { - unsigned int lsd = i % 10; // Get least significant + size_t lsd = i % 10; // Get least significant // digit i /= 10; // Prepare for next most @@ -153,7 +154,7 @@ inline const char* unsigned_integer_to_string(char* buf, size_t cchBuf, int i) void XMLToolingException::addProperties(const params& p) { m_processedmsg.erase(); - int i=m_params.size()+1; + map::size_type i=m_params.size()+1; char buf[20]; const vector& v=p.get(); for (vector::const_iterator ci=v.begin(); ci!=v.end(); ci++) {