summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/FileServerI.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-08-24 22:48:56 +0000
committerMark Spruiell <mes@zeroc.com>2006-08-24 22:48:56 +0000
commitd289ccc9af2907df3dc2f4ac8917aad2c04e5480 (patch)
tree9ef1338aa40cf285ddd251bfdcbbd5ea82906dd1 /cpp/src/IcePatch2/FileServerI.cpp
parentbug 1182: add zero-copy functions to stream API (diff)
downloadice-d289ccc9af2907df3dc2f4ac8917aad2c04e5480.tar.bz2
ice-d289ccc9af2907df3dc2f4ac8917aad2c04e5480.tar.xz
ice-d289ccc9af2907df3dc2f4ac8917aad2c04e5480.zip
bug 1316: auto_array
Diffstat (limited to 'cpp/src/IcePatch2/FileServerI.cpp')
-rw-r--r--cpp/src/IcePatch2/FileServerI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IcePatch2/FileServerI.cpp b/cpp/src/IcePatch2/FileServerI.cpp
index 66f2add3e98..a42b1ac91b6 100644
--- a/cpp/src/IcePatch2/FileServerI.cpp
+++ b/cpp/src/IcePatch2/FileServerI.cpp
@@ -8,6 +8,7 @@
// **********************************************************************
#include <IceUtil/DisableWarnings.h>
+#include <IceUtil/ScopedArray.h>
#include <IceUtil/Unicode.h>
#include <IcePatch2/FileServerI.h>
#include <OS.h>
@@ -112,7 +113,7 @@ IcePatch2::FileServerI::getFileCompressed_async(const AMD_FileServer_getFileComp
return;
}
- IceUtil::auto_array<Byte> bytes(new Byte[num]);
+ IceUtil::ScopedArray<Byte> bytes(new Byte[num]);
#ifdef _WIN32
int r;
if((r = read(fd, bytes.get(), static_cast<unsigned int>(num))) == -1)