You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2013/07/23 16:03:58 UTC
svn commit: r1506049 - in
/subversion/trunk/subversion/bindings/cxxhl/src/aprwrap: array.hpp impl.cpp
pool.hpp
Author: brane
Date: Tue Jul 23 14:03:57 2013
New Revision: 1506049
URL: http://svn.apache.org/r1506049
Log:
Remove all non-trivial throw declarations from C++HL, as they don't make much
sense in C++.
* subversion/bindings/cxxhl/src/aprwrap/array.hpp,
subversion/bindings/cxxhl/src/aprwrap/pool.hpp,
subversion/bindings/cxxhl/src/aprwrap/impl.cpp: Remove all throw declarations
that name exceptions and leave only the nothrow ones.
Modified:
subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/array.hpp
subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/impl.cpp
subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/pool.hpp
Modified: subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/array.hpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/array.hpp?rev=1506049&r1=1506048&r2=1506049&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/array.hpp (original)
+++ subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/array.hpp Tue Jul 23 14:03:57 2013
@@ -67,7 +67,7 @@ public:
/**
* Create a new proxy for the APR array @a array.
*/
- explicit Array(apr_array_header_t* array) throw(std::invalid_argument)
+ explicit Array(apr_array_header_t* array)
: m_array(array)
{
if (m_array->elt_size != sizeof(value_type))
@@ -103,7 +103,7 @@ public:
* @return An immutable reference to the array element at @a index.
* Like operator[] but perfoms a range check on the index.
*/
- const value_type& at(size_type index) const throw(std::out_of_range)
+ const value_type& at(size_type index) const
{
if (index < 0 || index >= size())
throw std::out_of_range(_("APR array index is out of range"));
@@ -122,7 +122,7 @@ public:
* @return A mutable reference to the array element at @a index.
* Like operator[] but perfoms a range check on the index.
*/
- value_type& at(size_type index) throw(std::out_of_range)
+ value_type& at(size_type index)
{
if (index < 0 || index >= size())
throw std::out_of_range(_("APR array index is out of range"));
@@ -228,7 +228,6 @@ public:
* Create a new proxy for the APR array @a array.
*/
explicit ConstArray(const apr_array_header_t* array)
- throw(std::invalid_argument)
: inherited(const_cast<apr_array_header_t*>(array))
{}
@@ -260,7 +259,7 @@ public:
* @return An immutable reference to the array element at @a index.
* Like operator[] but perfoms a range check on the index.
*/
- const value_type& at(size_type index) const throw(std::out_of_range)
+ const value_type& at(size_type index) const
{
return inherited::at(index);
}
Modified: subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/impl.cpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/impl.cpp?rev=1506049&r1=1506048&r2=1506049&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/impl.cpp (original)
+++ subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/impl.cpp Tue Jul 23 14:03:57 2013
@@ -40,7 +40,7 @@ namespace apr {
// Pool implementation
//
-apr_pool_t* Pool::get_root_pool() throw(cxxhl::InternalError)
+apr_pool_t* Pool::get_root_pool()
{
static const svn_atomic_t NONE = 0;
static const svn_atomic_t START = 1;
Modified: subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/pool.hpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/pool.hpp?rev=1506049&r1=1506048&r2=1506049&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/pool.hpp (original)
+++ subversion/trunk/subversion/bindings/cxxhl/src/aprwrap/pool.hpp Tue Jul 23 14:03:57 2013
@@ -46,7 +46,7 @@ public:
/**
* Create a pool as a child of the applications' root pool.
*/
- Pool() throw(cxxhl::InternalError)
+ Pool()
: m_pool(svn_pool_create(get_root_pool()))
{}
@@ -93,7 +93,7 @@ public:
}
private:
- static apr_pool_t* get_root_pool() throw(cxxhl::InternalError);
+ static apr_pool_t* get_root_pool();
apr_pool_t* const m_pool;
};