diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-06-10 19:15:45 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-06-10 19:15:45 (GMT) |
commit | b4323811d0d68bc8de00d9487469c4ec60601dd6 (patch) | |
tree | 097d5fca8617f4eba3bc032811e7b4eed6aafe97 | |
parent | 84e15087843c96ba73d1ec63d97e6d28a12d9766 (diff) | |
download | Doxygen-b4323811d0d68bc8de00d9487469c4ec60601dd6.zip Doxygen-b4323811d0d68bc8de00d9487469c4ec60601dd6.tar.gz Doxygen-b4323811d0d68bc8de00d9487469c4ec60601dd6.tar.bz2 |
Fix win64 compiler warnings
-rw-r--r-- | qtools/qcstring.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qtools/qcstring.h b/qtools/qcstring.h index 9c10bec..a998fef 100644 --- a/qtools/qcstring.h +++ b/qtools/qcstring.h @@ -168,7 +168,7 @@ class QCString */ bool fill( char c, int len = -1 ) { - int l = len==-1 ? m_rep.size() : len; + int l = len==-1 ? (int)m_rep.size() : len; m_rep = std::string(l,c); return TRUE; } @@ -226,7 +226,7 @@ class QCString { std::string s = m_rep; std::transform(s.begin(),s.end(),s.begin(), - [](unsigned char c){ return std::tolower(c); }); + [](unsigned char c){ return (unsigned char)std::tolower(c); }); return s; } @@ -234,7 +234,7 @@ class QCString { std::string s = m_rep; std::transform(s.begin(),s.end(),s.begin(), - [](unsigned char c){ return std::toupper(c); }); + [](unsigned char c){ return (unsigned char)std::toupper(c); }); return s; } @@ -256,7 +256,7 @@ class QCString uint len = s ? qstrlen(s) : 0; if (len>0) { - uint ol = m_rep.size(); + uint ol = (uint)m_rep.size(); if (index>ol) // insert beyond end of string and fill gap with spaces { m_rep.resize(index+len); |