summaryrefslogtreecommitdiff
path: root/ACE/ACEXML
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-08-21 11:02:14 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-08-21 11:02:14 +0200
commitd5f4d848c1318e544f2f1f82f6d82e4a1361ec64 (patch)
tree5967c7ea3520ba7cf78d56e93bd9022d042db6e8 /ACE/ACEXML
parent53ac0545ce37c867745c618a29eb6f82b538fc8a (diff)
downloadATCD-d5f4d848c1318e544f2f1f82f6d82e4a1361ec64.tar.gz
Make use of C++11 std::unique_ptr
* ACE/ACEXML/examples/SAXPrint/main.cpp: * ACE/tests/Bug_2540_Regression_Test.cpp: * ACE/tests/Bug_2820_Regression_Test.cpp: * ACE/tests/DLL_Test.cpp:
Diffstat (limited to 'ACE/ACEXML')
-rw-r--r--ACE/ACEXML/examples/SAXPrint/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ACE/ACEXML/examples/SAXPrint/main.cpp b/ACE/ACEXML/examples/SAXPrint/main.cpp
index ea61c506050..a0264368c8a 100644
--- a/ACE/ACEXML/examples/SAXPrint/main.cpp
+++ b/ACE/ACEXML/examples/SAXPrint/main.cpp
@@ -144,7 +144,12 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE_NEW_RETURN (handler,
ACEXML_SAXPrint_Handler (name),
-1);
+
+#if defined (ACE_HAS_CPP11)
+ std::unique_ptr<ACEXML_DefaultHandler> cleanup_handler (handler);
+#else
auto_ptr<ACEXML_DefaultHandler> cleanup_handler (handler);
+#endif
ACEXML_Parser parser;
ACEXML_InputSource input (stm);