File Remove-throw-specifier.patch of Package kdesvn4
From 7ec55375e0b33cf5f2856ba3c718a4e53e72fbd2 Mon Sep 17 00:00:00 2001
From: Christian Ehrlicher <Ch.Ehrlicher@gmx.de>
Date: Sun, 6 Aug 2017 10:30:38 +0200
Subject: [PATCH] Remove throw specifier (deprecated with c++11)
---
src/svnqt/client.h | 62 ++++++++++++++++----------------
src/svnqt/client_annotate.cpp | 2 +-
src/svnqt/client_cat.cpp | 6 ++--
src/svnqt/client_diff.cpp | 4 +--
src/svnqt/client_impl.h | 66 +++++++++++++++++------------------
src/svnqt/client_lock.cpp | 4 +--
src/svnqt/client_ls.cpp | 2 +-
src/svnqt/client_merge.cpp | 6 ++--
src/svnqt/client_modify.cpp | 32 ++++++++---------
src/svnqt/client_status.cpp | 8 ++---
10 files changed, 96 insertions(+), 96 deletions(-)
diff --git a/src/svnqt/client.h b/src/svnqt/client.h
index adbe2b7d..030ddd38 100644
--- a/src/svnqt/client.h
+++ b/src/svnqt/client.h
@@ -104,7 +104,7 @@ public:
* @return vector with Status entries.
*/
virtual StatusEntries
- status(const StatusParameter ¶ms) throw (ClientException) = 0;
+ status(const StatusParameter ¶ms) = 0;
/**
* Returns the status of a single file in the path.
@@ -117,7 +117,7 @@ public:
* @return a Status with Statis.isVersioned = FALSE
*/
virtual StatusPtr
- singleStatus(const Path &path, bool update = false, const Revision revision = svn::Revision::HEAD) throw (ClientException) = 0;
+ singleStatus(const Path &path, bool update = false, const Revision revision = svn::Revision::HEAD) = 0;
/**
* Executes a revision checkout.
@@ -126,7 +126,7 @@ public:
* @exception ClientException
*/
virtual Revision
- checkout(const CheckoutParameter ¶ms) throw (ClientException) = 0;
+ checkout(const CheckoutParameter ¶ms) = 0;
/**
* relocate wc @a from to @a to
@@ -134,7 +134,7 @@ public:
*/
virtual void
relocate(const Path &path, const Url &from_url,
- const Url &to_url, bool recurse) throw (ClientException) = 0;
+ const Url &to_url, bool recurse) = 0;
/**
* Sets entries for deletion.
@@ -148,7 +148,7 @@ public:
remove(const Targets &targets,
bool force,
bool keep_local = true,
- const PropertiesMap &revProps = PropertiesMap()) throw (ClientException) = 0;
+ const PropertiesMap &revProps = PropertiesMap()) = 0;
/**
* Reverts a couple of files to a pristiner state.
@@ -158,7 +158,7 @@ public:
revert(const Targets &targets,
Depth depth,
const StringArray &changelist = StringArray()
- ) throw (ClientException) = 0;
+ ) = 0;
/**
* Adds a file to the repository.
@@ -170,7 +170,7 @@ public:
* @exception ClientException
*/
virtual void
- add(const Path &path, svn::Depth depth, bool force = false, bool no_ignore = false, bool add_parents = true) throw (ClientException) = 0;
+ add(const Path &path, svn::Depth depth, bool force = false, bool no_ignore = false, bool add_parents = true) = 0;
/**
* Updates the file or directory.
@@ -178,7 +178,7 @@ public:
* @exception ClientException
*/
virtual Revisions
- update(const UpdateParameter ¶ms) throw (ClientException) = 0;
+ update(const UpdateParameter ¶ms) = 0;
/**
* Retrieves the contents for a specific @a revision of
@@ -192,7 +192,7 @@ public:
virtual QByteArray
cat(const Path &path,
const Revision &revision,
- const Revision &peg_revision = Revision::UNDEFINED) throw (ClientException) = 0;
+ const Revision &peg_revision = Revision::UNDEFINED) = 0;
/**
* Retrieves the contents for a specific @a revision of
* a @a path at @a peg_revision
@@ -207,7 +207,7 @@ public:
cat(svn::stream::SvnStream &buffer,
const Path &path,
const Revision &revision,
- const Revision &peg_revision) throw (ClientException) = 0;
+ const Revision &peg_revision) = 0;
/**
* Retrieves the contents for a specific @a revision of
* a @a path at @a peg_revision
@@ -222,7 +222,7 @@ public:
get(const Path &path,
const QString &target,
const Revision &revision,
- const Revision &peg_revision = Revision::UNDEFINED) throw (ClientException) = 0;
+ const Revision &peg_revision = Revision::UNDEFINED) = 0;
/**
* Retrieves the contents for a specific @a revision of
@@ -235,7 +235,7 @@ public:
* @param peg indicates in which revision path is valid
*/
virtual void
- annotate(AnnotatedFile &target, const AnnotateParameter ¶ms) throw (ClientException) = 0;
+ annotate(AnnotatedFile &target, const AnnotateParameter ¶ms) = 0;
/**
* Commits changes to the repository. This usually requires
@@ -245,7 +245,7 @@ public:
* @exception ClientException
*/
virtual svn::Revision
- commit(const CommitParameter ¶meters) throw (ClientException) = 0;
+ commit(const CommitParameter ¶meters) = 0;
/**
* Copies a versioned file with the history preserved.
@@ -254,7 +254,7 @@ public:
virtual svn::Revision
copy(const Path &srcPath,
const Revision &srcRevision,
- const Path &destPath) throw (ClientException) = 0;
+ const Path &destPath) = 0;
/**
* Copies a versioned file with the history preserved.
* @since subversion 1.5 api
@@ -262,14 +262,14 @@ public:
* @exception ClientException
*/
virtual svn::Revision
- copy(const CopyParameter ¶meter) throw (ClientException) = 0;
+ copy(const CopyParameter ¶meter) = 0;
/**
* Moves or renames a file.
* @exception ClientException
*/
virtual svn::Revision
- move(const CopyParameter ¶meter) throw (ClientException) = 0;
+ move(const CopyParameter ¶meter) = 0;
/**
* Creates a directory directly in a repository or creates a
@@ -287,7 +287,7 @@ public:
const QString &message,
bool makeParent = true,
const PropertiesMap &revProps = PropertiesMap()
- ) throw (ClientException) = 0;
+ ) = 0;
/**
* Recursively cleans up a local directory, finishing any
@@ -296,13 +296,13 @@ public:
* @exception ClientException
*/
virtual void
- cleanup(const Path &path) throw (ClientException) = 0;
+ cleanup(const Path &path) = 0;
/**
* Removes the 'conflicted' state on a file.
* @exception ClientException
*/
- virtual void resolve(const Path &path, Depth depth, const ConflictResult &resolution = ConflictResult()) throw (ClientException) = 0;
+ virtual void resolve(const Path &path, Depth depth, const ConflictResult &resolution = ConflictResult()) = 0;
/**
* Exports the contents of either a subversion repository into a
@@ -313,7 +313,7 @@ public:
* @return revision exported
*/
virtual Revision
- doExport(const CheckoutParameter ¶ms) throw (ClientException) = 0;
+ doExport(const CheckoutParameter ¶ms) = 0;
/**
* Update local copy to mirror a new url. This excapsulates the
@@ -329,7 +329,7 @@ public:
bool sticky_depth = true,
bool ignore_externals = false,
bool allow_unversioned = false
- ) throw (ClientException) = 0;
+ ) = 0;
/**
* Import file or directory PATH into repository directory URL at
@@ -347,17 +347,17 @@ public:
const QString &message,
svn::Depth depth,
bool no_ignore, bool no_unknown_nodetype,
- const PropertiesMap &revProps = PropertiesMap()) throw (ClientException) = 0;
+ const PropertiesMap &revProps = PropertiesMap()) = 0;
/**
* Merge changes from two paths into a new local path.
* @exception ClientException
*/
virtual void
- merge(const MergeParameter ¶meters) throw (ClientException) = 0;
+ merge(const MergeParameter ¶meters) = 0;
virtual void
- merge_peg(const MergeParameter ¶meters) throw (ClientException) = 0;
+ merge_peg(const MergeParameter ¶meters) = 0;
/**
* Retrieve information for the given path
@@ -375,7 +375,7 @@ public:
const Revision &rev,
const Revision &peg_revision = Revision::UNDEFINED,
const StringArray &changelists = StringArray()
- ) throw (ClientException) = 0;
+ ) = 0;
/**
* Retrieve log information for the given path
@@ -391,7 +391,7 @@ public:
* @sa LogParameter
*/
virtual bool
- log(const LogParameter ¶ms, LogEntriesMap &target) throw (ClientException) = 0;
+ log(const LogParameter ¶ms, LogEntriesMap &target) = 0;
/**
* Produce diff output which describes the delta between
@@ -406,7 +406,7 @@ public:
* @exception ClientException
*/
virtual QByteArray
- diff_peg(const DiffParameter &options) throw (ClientException) = 0;
+ diff_peg(const DiffParameter &options) = 0;
/**
* Produce diff output which describes the delta between
@@ -421,7 +421,7 @@ public:
* @exception ClientException
*/
virtual QByteArray
- diff(const DiffParameter &options) throw (ClientException) = 0;
+ diff(const DiffParameter &options) = 0;
/**
* lists entries in @a pathOrUrl no matter whether local or
@@ -442,7 +442,7 @@ public:
list(const Path &pathOrUrl,
const Revision &revision,
const Revision &peg,
- svn::Depth depth, bool retrieve_locks) throw (ClientException) = 0;
+ svn::Depth depth, bool retrieve_locks) = 0;
/**
* lists properties in @a path no matter whether local or
@@ -562,7 +562,7 @@ public:
virtual void
lock(const Targets &targets,
const QString &message,
- bool steal_lock) throw (ClientException) = 0;
+ bool steal_lock) = 0;
/**
* unlock files in repository or working copy
* @param targets items to unlock
@@ -570,7 +570,7 @@ public:
*/
virtual void
unlock(const Targets &targets,
- bool break_lock) throw (ClientException) = 0;
+ bool break_lock) = 0;
virtual void
url2Revision(const QString &revstring,
diff --git a/src/svnqt/client_annotate.cpp b/src/svnqt/client_annotate.cpp
index 32c4a544..8ca5122b 100644
--- a/src/svnqt/client_annotate.cpp
+++ b/src/svnqt/client_annotate.cpp
@@ -88,7 +88,7 @@ annotateReceiver(void *baton,
}
#endif
void
-Client_impl::annotate(AnnotatedFile &target, const AnnotateParameter ¶ms) throw (ClientException)
+Client_impl::annotate(AnnotatedFile &target, const AnnotateParameter ¶ms)
{
Pool pool;
svn_error_t *error;
diff --git a/src/svnqt/client_cat.cpp b/src/svnqt/client_cat.cpp
index 1844fe3f..4d6eec39 100644
--- a/src/svnqt/client_cat.cpp
+++ b/src/svnqt/client_cat.cpp
@@ -47,7 +47,7 @@ namespace svn
QByteArray
Client_impl::cat(const Path &path,
const Revision &revision,
- const Revision &peg_revision) throw (ClientException)
+ const Revision &peg_revision)
{
svn::stream::SvnByteStream buffer(*m_context);
svn_error_t *error = internal_cat(path, revision, peg_revision, buffer);
@@ -62,7 +62,7 @@ void
Client_impl::cat(svn::stream::SvnStream &buffer,
const Path &path,
const Revision &revision,
- const Revision &peg_revision) throw (ClientException)
+ const Revision &peg_revision)
{
svn_error_t *error = internal_cat(path, revision, peg_revision, buffer);
if (error != 0) {
@@ -74,7 +74,7 @@ void
Client_impl::get(const Path &path,
const QString &target,
const Revision &revision,
- const Revision &peg_revision) throw (ClientException)
+ const Revision &peg_revision)
{
svn::stream::SvnFileOStream buffer(target, *m_context);
svn_error_t *error = internal_cat(path, revision, peg_revision, buffer);
diff --git a/src/svnqt/client_diff.cpp b/src/svnqt/client_diff.cpp
index 4523c73f..876b8c54 100644
--- a/src/svnqt/client_diff.cpp
+++ b/src/svnqt/client_diff.cpp
@@ -49,7 +49,7 @@
namespace svn
{
QByteArray
-Client_impl::diff_peg(const DiffParameter &options) throw (ClientException)
+Client_impl::diff_peg(const DiffParameter &options)
{
Pool pool;
svn_error_t *error;
@@ -113,7 +113,7 @@ Client_impl::diff_peg(const DiffParameter &options) throw (ClientException)
}
QByteArray
-Client_impl::diff(const DiffParameter &options) throw (ClientException)
+Client_impl::diff(const DiffParameter &options)
{
Pool pool;
diff --git a/src/svnqt/client_impl.h b/src/svnqt/client_impl.h
index 7ce7085a..f5822a34 100644
--- a/src/svnqt/client_impl.h
+++ b/src/svnqt/client_impl.h
@@ -82,7 +82,7 @@ public:
* @return vector with Status entries.
*/
virtual StatusEntries
- status(const StatusParameter ¶ms) throw (ClientException);
+ status(const StatusParameter ¶ms);
/**
* Returns the status of a single file in the path.
@@ -95,7 +95,7 @@ public:
* @return a Status with Statis.isVersioned = FALSE
*/
virtual StatusPtr
- singleStatus(const Path &path, bool update = false, const Revision revision = svn::Revision::HEAD) throw (ClientException);
+ singleStatus(const Path &path, bool update = false, const Revision revision = svn::Revision::HEAD);
/**
* Executes a revision checkout.
@@ -104,7 +104,7 @@ public:
* @exception ClientException
*/
virtual Revision
- checkout(const CheckoutParameter ¶ms) throw (ClientException);
+ checkout(const CheckoutParameter ¶ms);
/**
* relocate wc @a from to @a to
@@ -112,7 +112,7 @@ public:
*/
virtual void
relocate(const Path &path, const Url &from_url,
- const Url &to_url, bool recurse) throw (ClientException);
+ const Url &to_url, bool recurse);
/**
* Sets files for deletion.
@@ -125,7 +125,7 @@ public:
remove(const Targets &targets,
bool force,
bool keep_local = true,
- const PropertiesMap &revProps = PropertiesMap()) throw (ClientException);
+ const PropertiesMap &revProps = PropertiesMap());
/**
* Reverts a couple of files to a pristiner state.
@@ -135,7 +135,7 @@ public:
revert(const Targets &targets,
Depth depth,
const StringArray &changelist = StringArray()
- ) throw (ClientException);
+ );
/**
* Adds a file to the repository.
@@ -147,7 +147,7 @@ public:
* @exception ClientException
* @sa svn::Depth
*/
- virtual void add(const Path &path, svn::Depth depth, bool force = false, bool no_ignore = false, bool add_parents = true) throw (ClientException);
+ virtual void add(const Path &path, svn::Depth depth, bool force = false, bool no_ignore = false, bool add_parents = true);
/**
* Updates the file or directory.
@@ -155,7 +155,7 @@ public:
* @exception ClientException
*/
virtual Revisions
- update(const UpdateParameter ¶ms) throw (ClientException);
+ update(const UpdateParameter ¶ms);
/**
* Retrieves the contents for a specific @a revision of
@@ -170,7 +170,7 @@ public:
virtual QByteArray
cat(const Path &path,
const Revision &revision,
- const Revision &peg_revision = Revision::UNDEFINED) throw (ClientException);
+ const Revision &peg_revision = Revision::UNDEFINED);
/**
* Retrieves the contents for a specific @a revision of
* a @a path at @a peg_revision
@@ -185,7 +185,7 @@ public:
cat(svn::stream::SvnStream &buffer,
const Path &path,
const Revision &revision,
- const Revision &peg_revision) throw (ClientException);
+ const Revision &peg_revision);
/**
* Retrieves the contents for a specific @a revision of
@@ -201,7 +201,7 @@ public:
get(const Path &path,
const QString &target,
const Revision &revision,
- const Revision &peg_revision = Revision::UNDEFINED) throw (ClientException);
+ const Revision &peg_revision = Revision::UNDEFINED);
/**
* Retrieves the contents for a specific @a revision of
@@ -214,7 +214,7 @@ public:
* @param peg indicates in which revision path is valid
*/
virtual void
- annotate(AnnotatedFile &target, const AnnotateParameter ¶ms) throw (ClientException);
+ annotate(AnnotatedFile &target, const AnnotateParameter ¶ms);
/**
* Commits changes to the repository. This usually requires
@@ -224,7 +224,7 @@ public:
* @exception ClientException
*/
virtual svn::Revision
- commit(const CommitParameter ¶meters) throw (ClientException);
+ commit(const CommitParameter ¶meters);
/**
* Copies a versioned file with the history preserved.
@@ -233,7 +233,7 @@ public:
virtual svn::Revision
copy(const Path &srcPath,
const Revision &srcRevision,
- const Path &destPath) throw (ClientException);
+ const Path &destPath);
/**
* Copies a versioned file with the history preserved.
* @since subversion 1.5 api
@@ -242,7 +242,7 @@ public:
* @exception ClientException
*/
virtual svn::Revision
- copy(const CopyParameter ¶meter) throw (ClientException);
+ copy(const CopyParameter ¶meter);
/**
* Moves or renames a file.
@@ -250,7 +250,7 @@ public:
* @exception ClientException
*/
virtual svn::Revision
- move(const CopyParameter ¶meter) throw (ClientException);
+ move(const CopyParameter ¶meter);
/**
* Creates a directory directly in a repository or creates a
@@ -267,7 +267,7 @@ public:
const QString &message,
bool makeParent = true,
const PropertiesMap &revProps = PropertiesMap()
- ) throw (ClientException);
+ );
/**
* Recursively cleans up a local directory, finishing any
@@ -276,13 +276,13 @@ public:
* @exception ClientException
*/
virtual void
- cleanup(const Path &path) throw (ClientException);
+ cleanup(const Path &path);
/**
* Removes the 'conflicted' state on a file.
* @exception ClientException
*/
- virtual void resolve(const Path &path, Depth depth, const ConflictResult &resolution = ConflictResult()) throw (ClientException);
+ virtual void resolve(const Path &path, Depth depth, const ConflictResult &resolution = ConflictResult());
/**
* Exports the contents of either a subversion repository into a
@@ -293,7 +293,7 @@ public:
* @return revision exported
*/
virtual Revision
- doExport(const CheckoutParameter ¶ms) throw (ClientException);
+ doExport(const CheckoutParameter ¶ms);
/**
* Update local copy to mirror a new url. This excapsulates the
@@ -309,7 +309,7 @@ public:
bool sticky_depth = true,
bool ignore_externals = false,
bool allow_unversioned = false
- ) throw (ClientException);
+ );
/**
* Import file or directory PATH into repository directory URL at
@@ -327,7 +327,7 @@ public:
const QString &message,
svn::Depth depth,
bool no_ignore, bool no_unknown_nodetype,
- const PropertiesMap &revProps = PropertiesMap()) throw (ClientException);
+ const PropertiesMap &revProps = PropertiesMap());
/**
* Merge changes from two paths into a new local path. For reintegrate merge see svn::MergeParameter!
@@ -335,10 +335,10 @@ public:
* @sa svn::MergeParameter
*/
virtual void
- merge(const MergeParameter ¶meters) throw (ClientException);
+ merge(const MergeParameter ¶meters);
virtual void
- merge_peg(const MergeParameter ¶meters) throw (ClientException);
+ merge_peg(const MergeParameter ¶meters);
/**
* Retrieve information for the given path
@@ -358,7 +358,7 @@ public:
const Revision &rev,
const Revision &peg_revision = Revision::UNDEFINED,
const StringArray &changelists = StringArray()
- ) throw (ClientException);
+ );
/**
* Retrieve log information for the given path
@@ -374,7 +374,7 @@ public:
* @sa LogParameter
*/
virtual bool
- log(const LogParameter ¶ms, LogEntriesMap &target) throw (ClientException);
+ log(const LogParameter ¶ms, LogEntriesMap &target);
/**
* Produce diff output which describes the delta between
@@ -390,7 +390,7 @@ public:
*/
virtual QByteArray
diff_peg(const DiffParameter &options)
- throw (ClientException);
+ ;
/**
* Produce diff output which describes the delta between
@@ -406,7 +406,7 @@ public:
*/
virtual QByteArray
diff(const DiffParameter &options)
- throw (ClientException);
+ ;
/**
* lists entries in @a pathOrUrl no matter whether local or
@@ -424,7 +424,7 @@ public:
list(const Path &pathOrUrl,
const Revision &revision,
const Revision &peg,
- svn::Depth depth, bool retrieve_locks) throw (ClientException);
+ svn::Depth depth, bool retrieve_locks);
/**
* lists properties in @a path no matter whether local or
@@ -543,7 +543,7 @@ public:
virtual void
lock(const Targets &targets,
const QString &message,
- bool steal_lock) throw (ClientException);
+ bool steal_lock);
/**
* unlock files in repository or working copy
* @param targets items to unlock
@@ -551,7 +551,7 @@ public:
*/
virtual void
unlock(const Targets &targets,
- bool break_lock) throw (ClientException);
+ bool break_lock);
virtual void
url2Revision(const QString &revstring,
@@ -574,7 +574,7 @@ public:
ContextWP m_context;
PathPropertiesMapListPtr resultlist;
};
- static void checkErrorThrow(svn_error_t *error)throw(ClientException)
+ static void checkErrorThrow(svn_error_t *error)
{
if (!error || error->apr_err == APR_SUCCESS) {
return;
@@ -599,12 +599,12 @@ public:
list_simple(const Path &pathOrUrl,
const Revision &revision,
const Revision &peg,
- bool recurse) throw (ClientException);
+ bool recurse);
DirEntries
list_locks(const Path &pathOrUrl,
const Revision &revision,
const Revision &peg,
- bool recurse) throw (ClientException);
+ bool recurse);
svn_error_t *internal_cat(const Path &path,
const Revision &revision,
@@ -624,12 +624,12 @@ private:
bool dry_run,
bool force,
const StringArray &merge_options
- ) throw (ClientException);
+ );
/** helper method
* @sa svn_client_merge_reintegrate
*/
- virtual void merge_reintegrate(const MergeParameter ¶meters) throw (ClientException);
+ virtual void merge_reintegrate(const MergeParameter ¶meters);
};
}
diff --git a/src/svnqt/client_lock.cpp b/src/svnqt/client_lock.cpp
index 6c579b77..5063a140 100644
--- a/src/svnqt/client_lock.cpp
+++ b/src/svnqt/client_lock.cpp
@@ -38,7 +38,7 @@ namespace svn
void
Client_impl::lock(const Targets &targets,
const QString &message,
- bool steal_lock) throw (ClientException)
+ bool steal_lock)
{
Pool pool;
svn_error_t *error =
@@ -54,7 +54,7 @@ Client_impl::lock(const Targets &targets,
void
Client_impl::unlock(const Targets &targets,
- bool break_lock) throw (ClientException)
+ bool break_lock)
{
Pool pool;
svn_error_t *error =
diff --git a/src/svnqt/client_ls.cpp b/src/svnqt/client_ls.cpp
index 7a654be3..9519783c 100644
--- a/src/svnqt/client_ls.cpp
+++ b/src/svnqt/client_ls.cpp
@@ -49,7 +49,7 @@ DirEntries
Client_impl::list_simple(const Path &_p,
const Revision &revision,
const Revision &peg,
- bool recurse) throw (ClientException)
+ bool recurse)
{
DirEntries entries;
@@ -104,7 +104,7 @@ DirEntries
Client_impl::list_locks(const Path &pathOrUrl,
const Revision &revision,
const Revision &peg,
- bool recurse) throw (ClientException)
+ bool recurse)
{
DirEntries entries;
#if ((SVN_VER_MAJOR == 1) && (SVN_VER_MINOR >= 4)) || (SVN_VER_MAJOR > 1)
@@ -186,7 +186,7 @@ DirEntries
Client_impl::list(const Path &pathOrUrl,
const Revision &revision,
const Revision &peg,
- Depth depth, bool retrieve_locks) throw (ClientException)
+ Depth depth, bool retrieve_locks)
{
#if ((SVN_VER_MAJOR == 1) && (SVN_VER_MINOR >= 4)) || (SVN_VER_MAJOR > 1)
diff --git a/src/svnqt/client_merge.cpp b/src/svnqt/client_merge.cpp
index 70b9ea15..a5dd4623 100644
--- a/src/svnqt/client_merge.cpp
+++ b/src/svnqt/client_merge.cpp
@@ -39,7 +39,7 @@
namespace svn
{
-void Client_impl::merge_reintegrate(const MergeParameter ¶meters) throw (ClientException)
+void Client_impl::merge_reintegrate(const MergeParameter ¶meters)
{
Pool pool;
svn_error_t *error = 0;
@@ -60,7 +60,7 @@ void Client_impl::merge_reintegrate(const MergeParameter ¶meters) throw (Cli
}
}
-void Client_impl::merge(const MergeParameter ¶meters) throw (ClientException)
+void Client_impl::merge(const MergeParameter ¶meters)
{
Pool pool;
svn_error_t *error = 0;
@@ -103,7 +103,7 @@ void Client_impl::merge(const MergeParameter ¶meters) throw (ClientException
}
}
-void Client_impl::merge_peg(const MergeParameter ¶meters) throw (ClientException)
+void Client_impl::merge_peg(const MergeParameter ¶meters)
{
#if ((SVN_VER_MAJOR == 1) && (SVN_VER_MINOR >= 5)) || (SVN_VER_MAJOR > 1)
Pool pool;
@@ -145,7 +145,7 @@ void Client_impl::merge_peg(const Path &src,
bool dry_run,
bool force,
const StringArray &merge_options
- ) throw (ClientException)
+ )
{
#if ((SVN_VER_MAJOR == 1) && (SVN_VER_MINOR >= 5)) || (SVN_VER_MAJOR > 1)
Q_UNUSED(src);
diff --git a/src/svnqt/client_modify.cpp b/src/svnqt/client_modify.cpp
index 96fde6d0..92ad1d7d 100644
--- a/src/svnqt/client_modify.cpp
+++ b/src/svnqt/client_modify.cpp
@@ -60,7 +60,7 @@ static svn_error_t *commit_callback2(const svn_commit_info_t *commit_info, void
}
Revision
-Client_impl::checkout(const CheckoutParameter ¶meters) throw (ClientException)
+Client_impl::checkout(const CheckoutParameter ¶meters)
{
Pool subPool;
svn_revnum_t revnum = 0;
@@ -100,7 +100,7 @@ Client_impl::remove(const Targets &targets,
bool force,
bool keep_local,
const PropertiesMap &revProps
- ) throw (ClientException)
+ )
{
Pool pool;
@@ -140,7 +140,7 @@ void
Client_impl::revert(const Targets &targets,
Depth depth,
const StringArray &changelist
- ) throw (ClientException)
+ )
{
Pool pool;
@@ -168,7 +168,7 @@ Client_impl::revert(const Targets &targets,
void
Client_impl::add(const Path &path,
- svn::Depth depth, bool force, bool no_ignore, bool add_parents) throw (ClientException)
+ svn::Depth depth, bool force, bool no_ignore, bool add_parents)
{
Pool pool;
#if ((SVN_VER_MAJOR == 1) && (SVN_VER_MINOR >= 5)) || (SVN_VER_MAJOR > 1)
@@ -196,7 +196,7 @@ Client_impl::add(const Path &path,
}
Revisions
-Client_impl::update(const UpdateParameter ¶ms) throw (ClientException)
+Client_impl::update(const UpdateParameter ¶ms)
{
Pool pool;
Revisions resulting;
@@ -229,7 +229,7 @@ Client_impl::update(const UpdateParameter ¶ms) throw (ClientException)
}
svn::Revision
-Client_impl::commit(const CommitParameter ¶meters) throw (ClientException)
+Client_impl::commit(const CommitParameter ¶meters)
{
Pool pool;
@@ -300,7 +300,7 @@ Client_impl::commit(const CommitParameter ¶meters) throw (ClientException)
}
Revision
-Client_impl::copy(const CopyParameter ¶meter)throw (ClientException)
+Client_impl::copy(const CopyParameter ¶meter)
{
if (parameter.srcPath().size() < 1) {
throw ClientException("Wrong size of sources.");
@@ -361,7 +361,7 @@ Client_impl::copy(const CopyParameter ¶meter)throw (ClientException)
Revision
Client_impl::copy(const Path &srcPath,
const Revision &srcRevision,
- const Path &destPath) throw (ClientException)
+ const Path &destPath)
{
#if ((SVN_VER_MAJOR == 1) && (SVN_VER_MINOR >= 5)) || (SVN_VER_MAJOR > 1)
return copy(CopyParameter(srcPath, destPath).srcRevision(srcRevision).asChild(true).makeParent(false));
@@ -387,7 +387,7 @@ Client_impl::copy(const CopyParameter ¶meter)throw (ClientException)
#endif
}
-svn::Revision Client_impl::move(const CopyParameter ¶meter) throw (ClientException)
+svn::Revision Client_impl::move(const CopyParameter ¶meter)
{
#if ((SVN_VER_MAJOR == 1) && (SVN_VER_MINOR >= 5)) || (SVN_VER_MAJOR > 1)
Pool pool;
@@ -434,7 +434,7 @@ Client_impl::mkdir(const Targets &targets,
const QString &msg,
bool makeParent,
const PropertiesMap &revProps
- ) throw (ClientException)
+ )
{
Pool pool;
m_context->setLogMessage(msg);
@@ -472,7 +472,7 @@ Client_impl::mkdir(const Targets &targets,
}
void
-Client_impl::cleanup(const Path &path) throw (ClientException)
+Client_impl::cleanup(const Path &path)
{
Pool subPool;
apr_pool_t *apr_pool = subPool.pool();
@@ -485,7 +485,7 @@ Client_impl::cleanup(const Path &path) throw (ClientException)
}
}
-void Client_impl::resolve(const Path &path, Depth depth, const ConflictResult &resolution) throw (ClientException)
+void Client_impl::resolve(const Path &path, Depth depth, const ConflictResult &resolution)
{
Pool pool;
#if ((SVN_VER_MAJOR == 1) && (SVN_VER_MINOR >= 5)) || (SVN_VER_MAJOR > 1)
@@ -507,7 +507,7 @@ void Client_impl::resolve(const Path &path, Depth depth, const ConflictResult &r
}
Revision
-Client_impl::doExport(const CheckoutParameter ¶ms) throw (ClientException)
+Client_impl::doExport(const CheckoutParameter ¶ms)
{
Pool pool;
svn_revnum_t revnum = 0;
@@ -560,7 +560,7 @@ Client_impl::doSwitch(
bool sticky_depth,
bool ignore_externals,
bool allow_unversioned
-) throw (ClientException)
+)
{
Pool pool;
svn_revnum_t revnum = 0;
@@ -592,7 +592,7 @@ Client_impl::import(const Path &path,
svn::Depth depth,
bool no_ignore, bool no_unknown_nodetype,
const PropertiesMap &revProps
- ) throw (ClientException)
+ )
{
svn_commit_info_t *commit_info = NULL;
@@ -620,7 +620,7 @@ Client_impl::relocate(const Path &path,
Client_impl::relocate(const Path &path,
const Url &from_url,
const Url &to_url,
- bool recurse) throw (ClientException)
+ bool recurse)
{
Pool pool;
svn_error_t *error =
diff --git a/src/svnqt/client_status.cpp b/src/svnqt/client_status.cpp
index 72b21dbe..d3e20146 100644
--- a/src/svnqt/client_status.cpp
+++ b/src/svnqt/client_status.cpp
@@ -309,7 +309,7 @@ remoteStatus(Client *client,
}
StatusEntries
-Client_impl::status(const StatusParameter ¶ms) throw (ClientException)
+Client_impl::status(const StatusParameter ¶ms)
{
if (Url::isValid(params.path().path())) {
return remoteStatus(this, params, m_context);
@@ -382,7 +382,7 @@ remoteSingleStatus(Client *client, const Path &path, const Revision &revision, c
}
StatusPtr
-Client_impl::singleStatus(const Path &path, bool update, const Revision revision) throw (ClientException)
+Client_impl::singleStatus(const Path &path, bool update, const Revision revision)
{
if (Url::isValid(path.path())) {
return remoteSingleStatus(this, path, revision, m_context);
@@ -391,7 +391,7 @@ Client_impl::singleStatus(const Path &path, bool update, const Revision &revisio
}
bool
-Client_impl::log(const LogParameter ¶ms, LogEntriesMap &log_target) throw (ClientException)
+Client_impl::log(const LogParameter ¶ms, LogEntriesMap &log_target)
{
Pool pool;
sBaton l_baton;
@@ -467,7 +467,7 @@ Client_impl::info(const Path &_p,
const Revision &rev,
const Revision &peg_revision,
const StringArray &changelists
- ) throw (ClientException)
+ )
{
Pool pool;
--
GitLab
From 2879935231fe6ff3d2b44c6cba7a083d11936ba3 Mon Sep 17 00:00:00 2001
From: Christian Ehrlicher <Ch.Ehrlicher@gmx.de>
Date: Sun, 6 Aug 2017 13:28:12 +0200
Subject: [PATCH] Remove throw specifier (deprecated with c++11)
---
src/svnqt/repository.cpp | 12 ++++++------
src/svnqt/repository.h | 10 +++++-----
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/svnqt/repository.cpp b/src/svnqt/repository.cpp
index 09c559f2..9cf70a46 100644
--- a/src/svnqt/repository.cpp
+++ b/src/svnqt/repository.cpp
@@ -43,7 +43,7 @@ Repository::~Repository()
/*!
\fn svn::Repository::Open(const QString&)
*/
-void Repository::Open(const QString &name) throw (ClientException)
+void Repository::Open(const QString &name)
{
svn_error_t *error = m_Data->Open(name);
if (error != 0) {
@@ -51,7 +51,7 @@ void Repository::Open(const QString &name) throw (ClientException)
}
}
-void Repository::CreateOpen(const CreateRepoParameter ¶ms) throw (ClientException)
+void Repository::CreateOpen(const CreateRepoParameter ¶ms)
{
svn_error_t *error = m_Data->CreateOpen(params);
if (error != 0) {
@@ -60,9 +60,9 @@ void Repository::CreateOpen(const CreateRepoParameter ¶ms) throw (ClientExce
}
/*!
- \fn svn::Repository::dump(const QString&output,const svn::Revision&start,const svn::Revision&end, bool incremental, bool use_deltas)throw (ClientException)
+ \fn svn::Repository::dump(const QString&output,const svn::Revision&start,const svn::Revision&end, bool incremental, bool use_deltas)
*/
-void Repository::dump(const QString &output, const svn::Revision &start, const svn::Revision &end, bool incremental, bool use_deltas)throw (ClientException)
+void Repository::dump(const QString &output, const svn::Revision &start, const svn::Revision &end, bool incremental, bool use_deltas)
{
svn_error_t *error = m_Data->dump(output, start, end, incremental, use_deltas);
if (error != 0) {
@@ -70,7 +70,7 @@ void Repository::dump(const QString &output, const svn::Revision &start, const s
}
}
-void Repository::loaddump(const QString &dump, LOAD_UUID uuida, const QString &parentFolder, bool usePre, bool usePost, bool validateProps)throw (ClientException)
+void Repository::loaddump(const QString &dump, LOAD_UUID uuida, const QString &parentFolder, bool usePre, bool usePost, bool validateProps)
{
svn_repos_load_uuid uuid_action;
switch (uuida) {
@@ -94,7 +94,7 @@ void Repository::loaddump(const QString &dump, LOAD_UUID uuida, const QString &p
/*!
\fn svn::Repository::hotcopy(const QString&src,const QString&dest,bool cleanlogs)
*/
-void Repository::hotcopy(const QString &src, const QString &dest, bool cleanlogs)throw (ClientException)
+void Repository::hotcopy(const QString &src, const QString &dest, bool cleanlogs)
{
svn_error_t *error = RepositoryData::hotcopy(src, dest, cleanlogs);
if (error != 0) {
diff --git a/src/svnqt/repository.h b/src/svnqt/repository.h
index af57a342..e11f2729 100644
--- a/src/svnqt/repository.h
+++ b/src/svnqt/repository.h
@@ -66,14 +66,14 @@ public:
\param path Path to a local repository, must not be an url
\exception ClientException will be thrown in case of an error
*/
- void Open(const QString &path) throw (ClientException);
+ void Open(const QString &path);
//! Creates and open a new repository
/*!
* Creates a new repository in path with type fstype. If create succeeded open and assigns with the object.
* If a repository was opened before it will closed.
* @param params All values needed
*/
- void CreateOpen(const CreateRepoParameter ¶ms) throw (ClientException);
+ void CreateOpen(const CreateRepoParameter ¶ms);
//! dump content of repository to a file
/*!
The repository must opened before. Progress message go trough the assigned svn::repository::RepositoryListener object.
@@ -85,7 +85,7 @@ public:
\param use_deltas use deltas in dump output
\exception ClientException will be thrown in case of an error
*/
- void dump(const QString &output, const svn::Revision &start, const svn::Revision &end, bool incremental, bool use_deltas)throw (ClientException);
+ void dump(const QString &output, const svn::Revision &start, const svn::Revision &end, bool incremental, bool use_deltas);
//! load a dump into repository
/*!
The repository must opened before. Progress message go trough the assigned svn::repository::RepositoryListener object.
@@ -97,7 +97,7 @@ public:
\param validateProps validate properties (@since subversion 1.7)
\exception ClientException will be thrown in case of an error
*/
- void loaddump(const QString &dump, LOAD_UUID uuida, const QString &parentFolder, bool usePre, bool usePost, bool validateProps)throw (ClientException);
+ void loaddump(const QString &dump, LOAD_UUID uuida, const QString &parentFolder, bool usePre, bool usePost, bool validateProps);
//! copy a repository to a new location
/*!
\param src the repository path to copy
@@ -105,7 +105,7 @@ public:
\param cleanlogs remove redundand log files from source
\exception ClientException will be thrown in case of an error
*/
- static void hotcopy(const QString &src, const QString &dest, bool cleanlogs)throw (ClientException);
+ static void hotcopy(const QString &src, const QString &dest, bool cleanlogs);
private:
RepositoryData *m_Data;
--
GitLab