projects
/
shibboleth
/
xmltooling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Xerces 3 revisions.
[shibboleth/xmltooling.git]
/
xmltooling
/
util
/
DateTime.cpp
diff --git
a/xmltooling/util/DateTime.cpp
b/xmltooling/util/DateTime.cpp
index
e5cb42c
..
ffe55cf
100644
(file)
--- a/
xmltooling/util/DateTime.cpp
+++ b/
xmltooling/util/DateTime.cpp
@@
-39,6
+39,7
@@
#include <xercesc/util/Janitor.hpp>
using namespace xmltooling;
#include <xercesc/util/Janitor.hpp>
using namespace xmltooling;
+using namespace xercesc;
using namespace std;
//
using namespace std;
//
@@
-1479,7
+1480,7
@@
void DateTime::fillString(XMLCh*& ptr, valueIndex ind, int expLen) const
XMLCh strBuffer[16];
assert(expLen < 16);
XMLString::binToText(fValue[ind], strBuffer, expLen, 10);
XMLCh strBuffer[16];
assert(expLen < 16);
XMLString::binToText(fValue[ind], strBuffer, expLen, 10);
- int actualLen = XMLString::stringLen(strBuffer);
+ int actualLen =
(int)
XMLString::stringLen(strBuffer);
int i;
//append leading zeros
for (i = 0; i < expLen - actualLen; i++)
int i;
//append leading zeros
for (i = 0; i < expLen - actualLen; i++)
@@
-1499,7
+1500,7
@@
int DateTime::fillYearString(XMLCh*& ptr, valueIndex ind) const
XMLCh strBuffer[16];
// let's hope we get no years of 15 digits...
XMLString::binToText(fValue[ind], strBuffer, 15, 10);
XMLCh strBuffer[16];
// let's hope we get no years of 15 digits...
XMLString::binToText(fValue[ind], strBuffer, 15, 10);
- int actualLen = XMLString::stringLen(strBuffer);
+ int actualLen =
(int)
XMLString::stringLen(strBuffer);
// don't forget that years can be negative...
int negativeYear = 0;
if(strBuffer[0] == chDash)
// don't forget that years can be negative...
int negativeYear = 0;
if(strBuffer[0] == chDash)