summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2Lib/Util.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2018-11-01 17:14:06 -0400
committerBernard Normier <bernard@zeroc.com>2018-11-01 17:14:06 -0400
commit3a763985c52246b1b804cdd7ee7bd49a82e76bd3 (patch)
treee35b1b0bdf6715ed784d0c86482355528bee81ee /cpp/src/IcePatch2Lib/Util.cpp
parentVisual Studio and msbuild updates (diff)
downloadice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.bz2
ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.xz
ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.zip
Increase Visual Studio warning level to Level4
Fixes #223.
Diffstat (limited to 'cpp/src/IcePatch2Lib/Util.cpp')
-rw-r--r--cpp/src/IcePatch2Lib/Util.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IcePatch2Lib/Util.cpp b/cpp/src/IcePatch2Lib/Util.cpp
index db12a8ec63f..b3c1bd88dc5 100644
--- a/cpp/src/IcePatch2Lib/Util.cpp
+++ b/cpp/src/IcePatch2Lib/Util.cpp
@@ -826,7 +826,7 @@ getFileInfoSeqInternal(const string& basePath, const string& relPath, int compre
}
else
{
- fill(bytesSHA.begin(), bytesSHA.end(), 0);
+ fill(bytesSHA.begin(), bytesSHA.end(), Byte(0));
}
info.checksum.swap(bytesSHA);
@@ -887,7 +887,7 @@ getFileInfoSeqInternal(const string& basePath, const string& relPath, int compre
if(relPath.size() + buf.st_size == 0)
{
bytesSHA.resize(20);
- fill(bytesSHA.begin(), bytesSHA.end(), 0);
+ fill(bytesSHA.begin(), bytesSHA.end(), Byte(0));
}
else
{
@@ -1226,7 +1226,7 @@ IcePatch2Internal::getFileTree0(const LargeFileInfoSeq& infoSeq, FileTree0& tree
}
else
{
- fill(tree1.checksum.begin(), tree1.checksum.end(), 0);
+ fill(tree1.checksum.begin(), tree1.checksum.end(), Byte(0));
}
copy(tree1.checksum.begin(), tree1.checksum.end(), c0);
@@ -1238,6 +1238,6 @@ IcePatch2Internal::getFileTree0(const LargeFileInfoSeq& infoSeq, FileTree0& tree
}
else
{
- fill(tree0.checksum.begin(), tree0.checksum.end(), 0);
+ fill(tree0.checksum.begin(), tree0.checksum.end(), Byte(0));
}
}