summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/UUID.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-09-20 11:05:13 +0200
committerJose <jose@zeroc.com>2017-09-20 11:05:13 +0200
commit7f0816001e085f482f8f9a34b7f8e06435907510 (patch)
tree46807f18b840e1c9816cd9b4aac001c8078d8bce /cpp/src/IceUtil/UUID.cpp
parentFixed Ice/acm Java7 build failure (diff)
downloadice-7f0816001e085f482f8f9a34b7f8e06435907510.tar.bz2
ice-7f0816001e085f482f8f9a34b7f8e06435907510.tar.xz
ice-7f0816001e085f482f8f9a34b7f8e06435907510.zip
Clean C++ exception code to only throw exception types
- Update C++ code to only throw types derived from C++ exception - Update C++ code to use one-shot constructors to create the exceptions Fix bug ICE-7892
Diffstat (limited to 'cpp/src/IceUtil/UUID.cpp')
-rw-r--r--cpp/src/IceUtil/UUID.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceUtil/UUID.cpp b/cpp/src/IceUtil/UUID.cpp
index 3db155164d9..7b65508894a 100644
--- a/cpp/src/IceUtil/UUID.cpp
+++ b/cpp/src/IceUtil/UUID.cpp
@@ -98,7 +98,7 @@ IceUtil::generateUUID()
RPC_STATUS ret = UuidCreate(&uuid);
if(ret != RPC_S_OK && ret != RPC_S_UUID_LOCAL_ONLY && ret != RPC_S_UUID_NO_ADDRESS)
{
- throw new SyscallException(__FILE__, __LINE__, GetLastError());
+ throw SyscallException(__FILE__, __LINE__, GetLastError());
}
unsigned char* str;
@@ -106,7 +106,7 @@ IceUtil::generateUUID()
ret = UuidToString(&uuid, &str);
if(ret != RPC_S_OK)
{
- throw new SyscallException(__FILE__, __LINE__, GetLastError());
+ throw SyscallException(__FILE__, __LINE__, GetLastError());
}
string result = reinterpret_cast<char*>(str);