summaryrefslogtreecommitdiff
path: root/cpp/src/IceXML
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-07-22 17:09:25 -0400
committerBernard Normier <bernard@zeroc.com>2016-07-22 17:09:25 -0400
commit752e06b4eb63abb8a30bb958802eaedda72d3806 (patch)
tree7c2348544d202c310a55a62629abc4025daa03a5 /cpp/src/IceXML
parentDisable VS 2015 update 3 optimizer (diff)
downloadice-752e06b4eb63abb8a30bb958802eaedda72d3806.tar.bz2
ice-752e06b4eb63abb8a30bb958802eaedda72d3806.tar.xz
ice-752e06b4eb63abb8a30bb958802eaedda72d3806.zip
Added ICE_BUILDING_SRC to make builds
Ice::Dispatcher and Ice::LocalObject are now hidden with C++11 Reworked C++11 exception ice_clone, added ExceptionHelper + other C++ cleanups
Diffstat (limited to 'cpp/src/IceXML')
-rw-r--r--cpp/src/IceXML/Parser.cpp10
-rw-r--r--cpp/src/IceXML/Parser.h3
2 files changed, 3 insertions, 10 deletions
diff --git a/cpp/src/IceXML/Parser.cpp b/cpp/src/IceXML/Parser.cpp
index c10b6061557..180545bea67 100644
--- a/cpp/src/IceXML/Parser.cpp
+++ b/cpp/src/IceXML/Parser.cpp
@@ -20,12 +20,12 @@ using namespace IceXML;
// ParserException
//
IceXML::ParserException::ParserException(const string& reason) :
- IceUtil::Exception(), _reason(reason)
+ _reason(reason)
{
}
IceXML::ParserException::ParserException(const char* file, int line, const string& reason) :
- IceUtil::Exception(file, line), _reason(reason)
+ IceUtil::ExceptionHelper<ParserException>(file, line), _reason(reason)
{
}
@@ -63,12 +63,6 @@ IceXML::ParserException::ice_clone() const
}
#endif
-void
-IceXML::ParserException::ice_throw() const
-{
- throw *this;
-}
-
string
IceXML::ParserException::reason() const
{
diff --git a/cpp/src/IceXML/Parser.h b/cpp/src/IceXML/Parser.h
index b44b3cac897..d6c7c43331d 100644
--- a/cpp/src/IceXML/Parser.h
+++ b/cpp/src/IceXML/Parser.h
@@ -42,7 +42,7 @@
namespace IceXML
{
-class ICE_XML_API ParserException : public IceUtil::Exception
+class ICE_XML_API ParserException : public IceUtil::ExceptionHelper<ParserException>
{
public:
@@ -57,7 +57,6 @@ public:
#ifndef ICE_CPP11_MAPPING
virtual ParserException* ice_clone() const;
#endif
- virtual void ice_throw() const;
std::string reason() const;