diff --git a/plugins/patchreview/patchhighlighter.h b/plugins/patchreview/patchhighlighter.h --- a/plugins/patchreview/patchhighlighter.h +++ b/plugins/patchreview/patchhighlighter.h @@ -47,7 +47,7 @@ { Q_OBJECT public: - PatchHighlighter( Diff2::DiffModel* model, KDevelop::IDocument* doc, PatchReviewPlugin* plugin, bool updatePatchFromEdits ) throw( QString ); + PatchHighlighter( Diff2::DiffModel* model, KDevelop::IDocument* doc, PatchReviewPlugin* plugin, bool updatePatchFromEdits ); ~PatchHighlighter() override; KDevelop::IDocument* doc(); QList< KTextEditor::MovingRange* > ranges() const; diff --git a/plugins/patchreview/patchhighlighter.cpp b/plugins/patchreview/patchhighlighter.cpp --- a/plugins/patchreview/patchhighlighter.cpp +++ b/plugins/patchreview/patchhighlighter.cpp @@ -441,7 +441,7 @@ } } -PatchHighlighter::PatchHighlighter( Diff2::DiffModel* model, IDocument* kdoc, PatchReviewPlugin* plugin, bool updatePatchFromEdits ) throw( QString ) +PatchHighlighter::PatchHighlighter( Diff2::DiffModel* model, IDocument* kdoc, PatchReviewPlugin* plugin, bool updatePatchFromEdits ) : m_doc( kdoc ), m_plugin( plugin ), m_model( model ), m_applying( false ) { KTextEditor::Document* doc = kdoc->textDocument(); // connect( kdoc, SIGNAL(destroyed(QObject*)), this, SLOT(documentDestroyed()) ); diff --git a/plugins/subversion/kdevsvncpp/client.hpp b/plugins/subversion/kdevsvncpp/client.hpp --- a/plugins/subversion/kdevsvncpp/client.hpp +++ b/plugins/subversion/kdevsvncpp/client.hpp @@ -157,7 +157,7 @@ const bool get_all = true, const bool update = false, const bool no_ignore = false, - const bool ignore_externals = false) throw(ClientException); + const bool ignore_externals = false); /** * Enumerates all files/dirs matchin the parameter @a filter @@ -181,7 +181,7 @@ const StatusFilter & filter, const bool descend, const bool update, - StatusEntries & entries) throw(ClientException); + StatusEntries & entries); /** @@ -201,22 +201,22 @@ const Revision & revision, bool recurse, bool ignore_externals = false, - const Revision & peg_revision = Revision::UNSPECIFIED) throw(ClientException); + const Revision & peg_revision = Revision::UNSPECIFIED); /** * relocate wc @a from to @a to * @exception ClientException */ void relocate(const Path & path, const char *from_url, - const char *to_url, bool recurse) throw(ClientException); + const char *to_url, bool recurse); /** * Sets a single file for deletion. * @exception ClientException */ void - remove(const Path & path, bool force) throw(ClientException); + remove(const Path & path, bool force); /** * Sets files for deletion. @@ -227,7 +227,7 @@ */ void remove(const Targets & targets, - bool force) throw(ClientException); + bool force); /** * Sets files to lock. @@ -239,7 +239,7 @@ */ void lock(const Targets & targets, bool force, - const char * comment) throw(ClientException); + const char * comment); /** * Sets files to unlock. @@ -249,21 +249,21 @@ * @exception ClientException */ void - unlock(const Targets & targets, bool force) throw(ClientException); + unlock(const Targets & targets, bool force); /** * Reverts a couple of files to a pristiner state. * @exception ClientException */ void - revert(const Targets & targets, bool recurse) throw(ClientException); + revert(const Targets & targets, bool recurse); /** * Adds a file to the repository. * @exception ClientException */ void - add(const Path & path, bool recurse) throw(ClientException); + add(const Path & path, bool recurse); /** * Updates the file or directory. @@ -281,13 +281,13 @@ update(const Targets & targets, const Revision & revision, bool recurse, - bool ignore_externals) throw(ClientException); + bool ignore_externals); svn_revnum_t update(const Path & path, const Revision & revision, bool recurse, - bool ignore_externals) throw(ClientException); + bool ignore_externals); /** * Retrieves the contents for a specific @a revision of @@ -302,7 +302,7 @@ std::string cat(const Path & path, const Revision & revision, - const Revision & peg_revision = Revision::UNSPECIFIED) throw(ClientException); + const Revision & peg_revision = Revision::UNSPECIFIED); /** @@ -324,7 +324,7 @@ get(Path & dstPath, const Path & path, const Revision & revision, - const Revision & peg_revision = Revision::UNSPECIFIED) throw(ClientException); + const Revision & peg_revision = Revision::UNSPECIFIED); /** @@ -339,7 +339,7 @@ AnnotatedFile * annotate(const Path & path, const Revision & revisionStart, - const Revision & revisionEnd) throw(ClientException); + const Revision & revisionEnd); /** * Commits changes to the repository. This usually requires @@ -356,16 +356,16 @@ commit(const Targets & targets, const char * message, bool recurse, - bool keep_locks = false) throw(ClientException); + bool keep_locks = false); /** * Copies a versioned file with the history preserved. * @exception ClientException */ void copy(const Path & srcPath, const Revision & srcRevision, - const Path & destPath) throw(ClientException); + const Path & destPath); /** * Moves or renames a file. @@ -375,7 +375,7 @@ move(const Path & srcPath, const Revision & srcRevision, const Path & destPath, - bool force) throw(ClientException); + bool force); /** * Creates a directory directly in a repository or creates a @@ -385,26 +385,26 @@ * @exception ClientException */ void - mkdir(const Path & path) throw(ClientException); + mkdir(const Path & path); void - mkdir(const Targets & targets) throw(ClientException); + mkdir(const Targets & targets); /** * Recursively cleans up a local directory, finishing any * incomplete operations, removing lockfiles, etc. * @param path a local directory. * @exception ClientException */ void - cleanup(const Path & path) throw(ClientException); + cleanup(const Path & path); /** * Removes the 'conflicted' state on a file. * @exception ClientException */ void - resolved(const Path & path, bool recurse) throw(ClientException); + resolved(const Path & path, bool recurse); /** * Export into file or directory TO_PATH from local or remote FROM_PATH @@ -425,7 +425,7 @@ const Revision & peg_revision = Revision::UNSPECIFIED, bool ignore_externals = false, bool recurse = true, - const char * native_eol = NULL) throw(ClientException); + const char * native_eol = NULL); /** * Update local copy to mirror a new url. This excapsulates the @@ -435,7 +435,7 @@ svn_revnum_t doSwitch(const Path & path, const char * url, const Revision & revision, - bool recurse) throw(ClientException); + bool recurse); /** * Import file or directory PATH into repository directory URL at @@ -448,12 +448,12 @@ import(const Path & path, const char * url, const char * message, - bool recurse) throw(ClientException); + bool recurse); void import(const Path & path, const Path & url, const char * message, - bool recurse) throw(ClientException); + bool recurse); /** @@ -466,7 +466,7 @@ const Path & localPath, bool force, bool recurse, bool notice_ancestry = false, - bool dry_run = false) throw(ClientException); + bool dry_run = false); /** @@ -480,7 +480,7 @@ info(const Path & pathOrUrl, bool recurse=false, const Revision & revision = Revision::UNSPECIFIED, - const Revision & pegRevision = Revision::UNSPECIFIED) throw(ClientException); + const Revision & pegRevision = Revision::UNSPECIFIED); /** @@ -498,7 +498,7 @@ const Revision & revisionStart, const Revision & revisionEnd, bool discoverChangedPaths = false, - bool strictNodeHistory = true) throw(ClientException); + bool strictNodeHistory = true); /** * Produce diff output which describes the delta between @@ -526,7 +526,7 @@ diff(const Path & tmpPath, const Path & path, const Revision & revision1, const Revision & revision2, const bool recurse, const bool ignoreAncestry, - const bool noDiffDeleted) throw(ClientException); + const bool noDiffDeleted); /** * Produce diff output which describes the delta between @@ -555,7 +555,7 @@ diff(const Path & tmpPath, const Path & path1, const Path & path2, const Revision & revision1, const Revision & revision2, const bool recurse, const bool ignoreAncestry, - const bool noDiffDeleted) throw(ClientException); + const bool noDiffDeleted); /** * Produce diff output which describes the delta of @@ -585,7 +585,7 @@ const Revision & pegRevision, const Revision & revision1, const Revision & revision2, const bool recurse, const bool ignoreAncestry, const bool noDiffDeleted) - throw(ClientException); + ; /** * lists entries in @a pathOrUrl no matter whether local or @@ -597,7 +597,7 @@ DirEntries list(const char * pathOrUrl, svn_opt_revision_t * revision, - bool recurse) throw(ClientException); + bool recurse); /** * lists properties in @a path no matter whether local or @@ -705,7 +705,7 @@ * @see svn:ignore property description */ void - ignore(const Path & path) throw(ClientException); + ignore(const Path & path); /** * Add files into ignore list. @@ -715,7 +715,7 @@ * @see svn:ignore property description */ void - ignore(const Targets & targets) throw(ClientException); + ignore(const Targets & targets); private: Context * m_context; diff --git a/plugins/subversion/kdevsvncpp/client_annotate.cpp b/plugins/subversion/kdevsvncpp/client_annotate.cpp --- a/plugins/subversion/kdevsvncpp/client_annotate.cpp +++ b/plugins/subversion/kdevsvncpp/client_annotate.cpp @@ -56,7 +56,7 @@ AnnotatedFile * Client::annotate(const Path & path, const Revision & revisionStart, - const Revision & revisionEnd) throw(ClientException) + const Revision & revisionEnd) { Pool pool; AnnotatedFile * entries = new AnnotatedFile; diff --git a/plugins/subversion/kdevsvncpp/client_cat.cpp b/plugins/subversion/kdevsvncpp/client_cat.cpp --- a/plugins/subversion/kdevsvncpp/client_cat.cpp +++ b/plugins/subversion/kdevsvncpp/client_cat.cpp @@ -43,7 +43,7 @@ std::string Client::cat(const Path & path, const Revision & revision, - const Revision & peg_revision) throw(ClientException) + const Revision & peg_revision) { Pool pool; @@ -82,7 +82,6 @@ static apr_file_t * openTempFile(Path & dstPath, const Path & path, const Revision & revision, Pool & pool) - throw(ClientException) { apr_file_t * file = nullptr; @@ -138,7 +137,7 @@ Client::get(Path & dstPath, const Path & path, const Revision & revision, - const Revision & peg_revision) throw(ClientException) + const Revision & peg_revision) { Pool pool; diff --git a/plugins/subversion/kdevsvncpp/client_diff.cpp b/plugins/subversion/kdevsvncpp/client_diff.cpp --- a/plugins/subversion/kdevsvncpp/client_diff.cpp +++ b/plugins/subversion/kdevsvncpp/client_diff.cpp @@ -80,7 +80,7 @@ Client::diff(const Path & tmpPath, const Path & path, const Revision & revision1, const Revision & revision2, const bool recurse, const bool ignoreAncestry, - const bool noDiffDeleted) throw(ClientException) + const bool noDiffDeleted) { Pool pool; svn_error_t * error; @@ -165,7 +165,6 @@ const Path & path2, const Revision & revision1, const Revision & revision2, const bool recurse, const bool ignoreAncestry, const bool noDiffDeleted) - throw(ClientException) { Pool pool; svn_error_t * error; @@ -250,7 +249,7 @@ const Revision & pegRevision, const Revision & revision1, const Revision & revision2, const bool recurse, const bool ignoreAncestry, - const bool noDiffDeleted) throw(ClientException) + const bool noDiffDeleted) { Pool pool; svn_error_t * error; diff --git a/plugins/subversion/kdevsvncpp/client_ls.cpp b/plugins/subversion/kdevsvncpp/client_ls.cpp --- a/plugins/subversion/kdevsvncpp/client_ls.cpp +++ b/plugins/subversion/kdevsvncpp/client_ls.cpp @@ -130,7 +130,7 @@ DirEntries Client::list(const char * pathOrUrl, svn_opt_revision_t * revision, - bool recurse) throw(ClientException) + bool recurse) { Pool pool; DirEntries entries; diff --git a/plugins/subversion/kdevsvncpp/client_modify.cpp b/plugins/subversion/kdevsvncpp/client_modify.cpp --- a/plugins/subversion/kdevsvncpp/client_modify.cpp +++ b/plugins/subversion/kdevsvncpp/client_modify.cpp @@ -43,7 +43,7 @@ const Revision & revision, bool recurse, bool ignore_externals, - const Revision & peg_revision) throw(ClientException) + const Revision & peg_revision) { Pool subPool; apr_pool_t * apr_pool = subPool.pool(); @@ -68,7 +68,7 @@ void Client::remove(const Path & path, - bool force) throw(ClientException) + bool force) { Pool pool; Targets targets(path.c_str()); @@ -86,7 +86,7 @@ void Client::remove(const Targets & targets, - bool force) throw(ClientException) + bool force) { Pool pool; svn_client_commit_info_t *commit_info = nullptr; @@ -103,7 +103,7 @@ void Client::lock(const Targets & targets, bool force, - const char * comment) throw(ClientException) + const char * comment) { Pool pool; @@ -118,7 +118,7 @@ } void - Client::unlock(const Targets & targets, bool force) throw(ClientException) + Client::unlock(const Targets & targets, bool force) { Pool pool; @@ -133,7 +133,7 @@ void Client::revert(const Targets & targets, - bool recurse) throw(ClientException) + bool recurse) { Pool pool; @@ -149,7 +149,7 @@ void Client::add(const Path & path, - bool recurse) throw(ClientException) + bool recurse) { Pool pool; @@ -171,7 +171,7 @@ Client::update(const Targets & targets, const Revision & revision, bool recurse, - bool ignore_externals) throw(ClientException) + bool ignore_externals) { Pool pool; apr_array_header_t * result_revs; @@ -204,7 +204,7 @@ Client::update(const Path & path, const Revision & revision, bool recurse, - bool ignore_externals) throw(ClientException) + bool ignore_externals) { Targets targets(path.c_str()); return update(targets, revision, recurse, ignore_externals)[0]; @@ -214,7 +214,7 @@ Client::commit(const Targets & targets, const char * message, bool recurse, - bool keep_locks) throw(ClientException) + bool keep_locks) { Pool pool; @@ -242,7 +242,7 @@ void Client::copy(const Path & srcPath, const Revision & srcRevision, - const Path & destPath) throw(ClientException) + const Path & destPath) { Pool pool; svn_client_commit_info_t *commit_info = nullptr; @@ -262,7 +262,7 @@ Client::move(const Path & srcPath, const Revision & /*srcRevision*/, const Path & destPath, - bool force) throw(ClientException) + bool force) { Pool pool; svn_client_commit_info_t *commit_info = nullptr; @@ -280,7 +280,7 @@ } void - Client::mkdir(const Path & path) throw(ClientException) + Client::mkdir(const Path & path) { Pool pool; Targets targets(path.c_str()); @@ -297,7 +297,7 @@ } void - Client::mkdir(const Targets & targets) throw(ClientException) + Client::mkdir(const Targets & targets) { Pool pool; @@ -313,7 +313,7 @@ } void - Client::cleanup(const Path & path) throw(ClientException) + Client::cleanup(const Path & path) { Pool subPool; apr_pool_t * apr_pool = subPool.pool(); @@ -327,7 +327,7 @@ void Client::resolved(const Path & path, - bool recurse) throw(ClientException) + bool recurse) { Pool pool; svn_error_t * error = @@ -348,7 +348,7 @@ const Revision & peg_revision, bool ignore_externals, bool recurse, - const char * native_eol) throw(ClientException) + const char * native_eol) { Pool pool; svn_revnum_t revnum = 0; @@ -374,7 +374,7 @@ Client::doSwitch(const Path & path, const char * url, const Revision & revision, - bool recurse) throw(ClientException) + bool recurse) { Pool pool; svn_revnum_t revnum = 0; @@ -396,7 +396,7 @@ Client::import(const Path & path, const char * url, const char * message, - bool recurse) throw(ClientException) + bool recurse) { Pool pool; svn_client_commit_info_t *commit_info = nullptr; @@ -419,7 +419,7 @@ Client::import(const Path & path, const Path & url, const char * message, - bool recurse) throw(ClientException) + bool recurse) { import(path, url.c_str(), message, recurse); } @@ -430,7 +430,7 @@ const Path & localPath, bool force, bool recurse, bool notice_ancestry, - bool dry_run) throw(ClientException) + bool dry_run) { Pool pool; svn_error_t * error = @@ -454,7 +454,7 @@ Client::relocate(const Path & path, const char * from_url, const char * to_url, - bool recurse) throw(ClientException) + bool recurse) { Pool pool; svn_error_t * error = @@ -470,7 +470,7 @@ } void - Client::ignore(const Path & path) throw(ClientException) + Client::ignore(const Path & path) { static const char s_svnIgnore[] = "svn:ignore"; Pool pool; @@ -536,7 +536,7 @@ } void - Client::ignore(const Targets & targets) throw(ClientException) + Client::ignore(const Targets & targets) { // it's slow, but simple for (std::vector::const_iterator i=targets.targets().begin(), e=targets.targets().end();i!=e;++i) diff --git a/plugins/subversion/kdevsvncpp/client_status.cpp b/plugins/subversion/kdevsvncpp/client_status.cpp --- a/plugins/subversion/kdevsvncpp/client_status.cpp +++ b/plugins/subversion/kdevsvncpp/client_status.cpp @@ -198,7 +198,7 @@ const bool get_all, const bool update, const bool no_ignore, - const bool ignore_externals) throw(ClientException) + const bool ignore_externals) { if (Url::isValid(path)) { @@ -314,7 +314,7 @@ const StatusFilter & filter, const bool descend, const bool update, - StatusEntries & entries) throw(ClientException) + StatusEntries & entries) { entries.clear(); @@ -336,7 +336,7 @@ const LogEntries * Client::log(const char * path, const Revision & revisionStart, const Revision & revisionEnd, bool discoverChangedPaths, - bool strictNodeHistory) throw(ClientException) + bool strictNodeHistory) { Pool pool; Targets target(path); @@ -388,7 +388,7 @@ Client::info(const Path & pathOrUrl, bool recurse, const Revision & revision, - const Revision & pegRevision) throw(ClientException) + const Revision & pegRevision) { Pool pool; InfoVector infoVector; diff --git a/plugins/subversion/svnclient.h b/plugins/subversion/svnclient.h --- a/plugins/subversion/svnclient.h +++ b/plugins/subversion/svnclient.h @@ -42,22 +42,19 @@ QString diff( const svn::Path& src, const svn::Revision& srcRev, const svn::Path& dst, const svn::Revision& dstRev, const bool recurse, const bool ignoreAncestry, - const bool noDiffDeleted, const bool ignoreContentType ) - throw (svn::ClientException); + const bool noDiffDeleted, const bool ignoreContentType ); QString diff( const svn::Path& src, const svn::Revision& pegRev, const svn::Revision& srcRev, const svn::Revision& dstRev, const bool recurse, const bool ignoreAncestry, - const bool noDiffDeleted, const bool ignoreContentType ) - throw (svn::ClientException); + const bool noDiffDeleted, const bool ignoreContentType ); void log( const char* path, const svn::Revision& start, const svn::Revision& end, int limit, bool discoverChangedPaths = false, - bool strictNodeHistory = true ) - throw (svn::ClientException); + bool strictNodeHistory = true ); void emitLogEventReceived( const KDevelop::VcsEvent& ); diff --git a/plugins/subversion/svnclient.cpp b/plugins/subversion/svnclient.cpp --- a/plugins/subversion/svnclient.cpp +++ b/plugins/subversion/svnclient.cpp @@ -85,7 +85,6 @@ const svn::Path& dst, const svn::Revision& dstRev, const bool recurse, const bool ignoreAncestry, const bool noDiffDeleted, const bool ignoreContentType ) - throw (svn::ClientException) { svn::Pool pool; // null options @@ -162,7 +161,6 @@ const svn::Revision& srcRev, const svn::Revision& dstRev, const bool recurse, const bool ignoreAncestry, const bool noDiffDeleted, const bool ignoreContentType ) - throw (svn::ClientException) { svn::Pool pool; // null options @@ -305,7 +303,6 @@ int limit, bool discoverChangedPaths, bool strictNodeHistory ) - throw (svn::ClientException) { svn::Pool pool; svn::Targets target(path);