diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-04-30 08:20:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-05-02 17:02:28 +0200 |
commit | 10d29c390dd58ed629dd27fe5ed35fae28eceec3 (patch) | |
tree | 7476cbb90fff182c5bec0a5a1ef9c41a3ad29f19 /unoidl/source | |
parent | a9243e626193ab4efe3a618413886773336a38e6 (diff) |
throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite
Change-Id: I076f16d0536b534abf0ced4d76051eadb4c0e033
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114949
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unoidl/source')
-rw-r--r-- | unoidl/source/legacyprovider.cxx | 6 | ||||
-rw-r--r-- | unoidl/source/legacyprovider.hxx | 2 | ||||
-rw-r--r-- | unoidl/source/sourcefileprovider.cxx | 6 | ||||
-rw-r--r-- | unoidl/source/sourcefileprovider.hxx | 2 | ||||
-rw-r--r-- | unoidl/source/sourceprovider-scanner.hxx | 16 | ||||
-rw-r--r-- | unoidl/source/sourcetreeprovider.cxx | 6 | ||||
-rw-r--r-- | unoidl/source/sourcetreeprovider.hxx | 2 | ||||
-rw-r--r-- | unoidl/source/unoidl.cxx | 42 | ||||
-rw-r--r-- | unoidl/source/unoidlprovider.cxx | 6 | ||||
-rw-r--r-- | unoidl/source/unoidlprovider.hxx | 2 |
10 files changed, 45 insertions, 45 deletions
diff --git a/unoidl/source/legacyprovider.cxx b/unoidl/source/legacyprovider.cxx index cadd1b855b31..13a2275282ba 100644 --- a/unoidl/source/legacyprovider.cxx +++ b/unoidl/source/legacyprovider.cxx @@ -79,7 +79,7 @@ public: RegistryKey const & key); private: - virtual ~Cursor() throw () override {} + virtual ~Cursor() noexcept override {} virtual rtl::Reference< Entity > getNext(OUString * name) override; @@ -135,7 +135,7 @@ public: {} private: - virtual ~Module() throw () override {} + virtual ~Module() noexcept override {} virtual std::vector< OUString > getMemberNames() const override; @@ -821,7 +821,7 @@ rtl::Reference< Entity > LegacyProvider::findEntity(OUString const & name) : rtl::Reference< Entity >(); } -LegacyProvider::~LegacyProvider() throw () {} +LegacyProvider::~LegacyProvider() noexcept {} } diff --git a/unoidl/source/legacyprovider.hxx b/unoidl/source/legacyprovider.hxx index 41310ecdee70..caa1b38c84a4 100644 --- a/unoidl/source/legacyprovider.hxx +++ b/unoidl/source/legacyprovider.hxx @@ -30,7 +30,7 @@ public: const override; private: - virtual ~LegacyProvider() throw () override; + virtual ~LegacyProvider() noexcept override; Manager & manager_; mutable RegistryKey ucr_; diff --git a/unoidl/source/sourcefileprovider.cxx b/unoidl/source/sourcefileprovider.cxx index c0fc695e4235..983b7d3c3403 100644 --- a/unoidl/source/sourcefileprovider.cxx +++ b/unoidl/source/sourcefileprovider.cxx @@ -27,7 +27,7 @@ public: {} private: - virtual ~Cursor() throw () override {} + virtual ~Cursor() noexcept override {} virtual rtl::Reference< Entity > getNext(OUString * name) override; @@ -53,7 +53,7 @@ public: std::map< OUString, rtl::Reference<Entity> > map; private: - virtual ~Module() throw () override {} + virtual ~Module() noexcept override {} virtual std::vector<OUString> getMemberNames() const override; @@ -128,7 +128,7 @@ rtl::Reference<Entity> SourceFileProvider::findEntity(OUString const & name) } } -SourceFileProvider::~SourceFileProvider() throw () {} +SourceFileProvider::~SourceFileProvider() noexcept {} } diff --git a/unoidl/source/sourcefileprovider.hxx b/unoidl/source/sourcefileprovider.hxx index 2d986cc1f39d..52fd32f3c735 100644 --- a/unoidl/source/sourcefileprovider.hxx +++ b/unoidl/source/sourcefileprovider.hxx @@ -31,7 +31,7 @@ public: virtual rtl::Reference<Entity> findEntity(OUString const& name) const override; private: - virtual ~SourceFileProvider() throw() override; + virtual ~SourceFileProvider() noexcept override; std::map<OUString, rtl::Reference<Entity>> rootMap_; }; diff --git a/unoidl/source/sourceprovider-scanner.hxx b/unoidl/source/sourceprovider-scanner.hxx index 2d33c39cbf25..6cad6a540117 100644 --- a/unoidl/source/sourceprovider-scanner.hxx +++ b/unoidl/source/sourceprovider-scanner.hxx @@ -51,7 +51,7 @@ public: std::vector<unoidl::EnumTypeEntity::Member> members; private: - virtual ~SourceProviderEnumTypeEntityPad() throw () override {} + virtual ~SourceProviderEnumTypeEntityPad() noexcept override {} }; class SourceProviderPlainStructTypeEntityPad: public SourceProviderEntityPad { @@ -68,7 +68,7 @@ public: std::vector<unoidl::PlainStructTypeEntity::Member> members; private: - virtual ~SourceProviderPlainStructTypeEntityPad() throw () override {} + virtual ~SourceProviderPlainStructTypeEntityPad() noexcept override {} }; class SourceProviderPolymorphicStructTypeTemplateEntityPad: @@ -83,7 +83,7 @@ public: std::vector<unoidl::PolymorphicStructTypeTemplateEntity::Member> members; private: - virtual ~SourceProviderPolymorphicStructTypeTemplateEntityPad() throw () override {} + virtual ~SourceProviderPolymorphicStructTypeTemplateEntityPad() noexcept override {} }; class SourceProviderExceptionTypeEntityPad: public SourceProviderEntityPad { @@ -100,7 +100,7 @@ public: std::vector<unoidl::ExceptionTypeEntity::Member> members; private: - virtual ~SourceProviderExceptionTypeEntityPad() throw () override {} + virtual ~SourceProviderExceptionTypeEntityPad() noexcept override {} }; class SourceProviderInterfaceTypeEntityPad: public SourceProviderEntityPad { @@ -151,7 +151,7 @@ public: std::map<OUString, Member> allMembers; private: - virtual ~SourceProviderInterfaceTypeEntityPad() throw () override {} + virtual ~SourceProviderInterfaceTypeEntityPad() noexcept override {} bool checkBaseClashes( YYLTYPE location, yyscan_t yyscanner, SourceProviderScannerData * data, @@ -186,7 +186,7 @@ public: std::vector<unoidl::ConstantGroupEntity::Member> members; private: - virtual ~SourceProviderConstantGroupEntityPad() throw () override {} + virtual ~SourceProviderConstantGroupEntityPad() noexcept override {} }; class SourceProviderSingleInterfaceBasedServiceEntityPad: @@ -232,7 +232,7 @@ public: std::vector<Constructor> constructors; private: - virtual ~SourceProviderSingleInterfaceBasedServiceEntityPad() throw () override {} + virtual ~SourceProviderSingleInterfaceBasedServiceEntityPad() noexcept override {} }; class SourceProviderAccumulationBasedServiceEntityPad: @@ -251,7 +251,7 @@ public: directProperties; private: - virtual ~SourceProviderAccumulationBasedServiceEntityPad() throw () override {} + virtual ~SourceProviderAccumulationBasedServiceEntityPad() noexcept override {} }; struct SourceProviderEntity { diff --git a/unoidl/source/sourcetreeprovider.cxx b/unoidl/source/sourcetreeprovider.cxx index 498ab33b03bc..9531d057c979 100644 --- a/unoidl/source/sourcetreeprovider.cxx +++ b/unoidl/source/sourcetreeprovider.cxx @@ -97,7 +97,7 @@ public: Cursor() {} private: - virtual ~Cursor() throw () override {} + virtual ~Cursor() noexcept override {} virtual rtl::Reference<Entity> getNext(OUString *) override { return rtl::Reference<Entity>(); } //TODO @@ -108,7 +108,7 @@ public: SourceModuleEntity() {} private: - virtual ~SourceModuleEntity() throw () override {} + virtual ~SourceModuleEntity() noexcept override {} virtual std::vector<OUString> getMemberNames() const override { return std::vector<OUString>(); } //TODO @@ -203,7 +203,7 @@ rtl::Reference<Entity> SourceTreeProvider::findEntity(OUString const & name) return ent; } -SourceTreeProvider::~SourceTreeProvider() throw () {} +SourceTreeProvider::~SourceTreeProvider() noexcept {} } diff --git a/unoidl/source/sourcetreeprovider.hxx b/unoidl/source/sourcetreeprovider.hxx index 3318a6dee02b..37bd6baa1286 100644 --- a/unoidl/source/sourcetreeprovider.hxx +++ b/unoidl/source/sourcetreeprovider.hxx @@ -31,7 +31,7 @@ public: virtual rtl::Reference<Entity> findEntity(OUString const& name) const override; private: - virtual ~SourceTreeProvider() throw() override; + virtual ~SourceTreeProvider() noexcept override; Manager& manager_; OUString uri_; diff --git a/unoidl/source/unoidl.cxx b/unoidl/source/unoidl.cxx index e2c3a0f6fe81..b66a6f45e534 100644 --- a/unoidl/source/unoidl.cxx +++ b/unoidl/source/unoidl.cxx @@ -38,7 +38,7 @@ public: {} private: - virtual ~AggregatingModule() throw () override {} + virtual ~AggregatingModule() noexcept override {} virtual std::vector< OUString > getMemberNames() const override; @@ -70,7 +70,7 @@ public: { findCursor(); } private: - virtual ~AggregatingCursor() throw () override {} + virtual ~AggregatingCursor() noexcept override {} virtual rtl::Reference< Entity > getNext(OUString * name) override; @@ -125,44 +125,44 @@ rtl::Reference< MapCursor > AggregatingModule::createCursor() const { } -NoSuchFileException::~NoSuchFileException() throw () {} +NoSuchFileException::~NoSuchFileException() noexcept {} -FileFormatException::~FileFormatException() throw () {} +FileFormatException::~FileFormatException() noexcept {} -Entity::~Entity() throw () {} +Entity::~Entity() noexcept {} -MapCursor::~MapCursor() throw () {} +MapCursor::~MapCursor() noexcept {} -ModuleEntity::~ModuleEntity() throw () {} +ModuleEntity::~ModuleEntity() noexcept {} -PublishableEntity::~PublishableEntity() throw () {} +PublishableEntity::~PublishableEntity() noexcept {} -EnumTypeEntity::~EnumTypeEntity() throw () {} +EnumTypeEntity::~EnumTypeEntity() noexcept {} -PlainStructTypeEntity::~PlainStructTypeEntity() throw () {} +PlainStructTypeEntity::~PlainStructTypeEntity() noexcept {} PolymorphicStructTypeTemplateEntity::~PolymorphicStructTypeTemplateEntity() - throw () + noexcept {} -ExceptionTypeEntity::~ExceptionTypeEntity() throw () {} +ExceptionTypeEntity::~ExceptionTypeEntity() noexcept {} -InterfaceTypeEntity::~InterfaceTypeEntity() throw () {} +InterfaceTypeEntity::~InterfaceTypeEntity() noexcept {} -TypedefEntity::~TypedefEntity() throw () {} +TypedefEntity::~TypedefEntity() noexcept {} -ConstantGroupEntity::~ConstantGroupEntity() throw () {} +ConstantGroupEntity::~ConstantGroupEntity() noexcept {} -SingleInterfaceBasedServiceEntity::~SingleInterfaceBasedServiceEntity() throw () +SingleInterfaceBasedServiceEntity::~SingleInterfaceBasedServiceEntity() noexcept {} -AccumulationBasedServiceEntity::~AccumulationBasedServiceEntity() throw () {} +AccumulationBasedServiceEntity::~AccumulationBasedServiceEntity() noexcept {} -InterfaceBasedSingletonEntity::~InterfaceBasedSingletonEntity() throw () {} +InterfaceBasedSingletonEntity::~InterfaceBasedSingletonEntity() noexcept {} -ServiceBasedSingletonEntity::~ServiceBasedSingletonEntity() throw () {} +ServiceBasedSingletonEntity::~ServiceBasedSingletonEntity() noexcept {} -Provider::~Provider() throw () {} +Provider::~Provider() noexcept {} rtl::Reference< Provider > Manager::addProvider(OUString const & uri) { rtl::Reference< Provider > p(loadProvider(uri)); @@ -192,7 +192,7 @@ rtl::Reference< MapCursor > Manager::createCursor(OUString const & name) return new AggregatingCursor(providers_, name); } -Manager::~Manager() throw () {} +Manager::~Manager() noexcept {} rtl::Reference< Provider > Manager::loadProvider(OUString const & uri) { osl::DirectoryItem item; diff --git a/unoidl/source/unoidlprovider.cxx b/unoidl/source/unoidlprovider.cxx index 9450cab33428..b1c7788c2a40 100644 --- a/unoidl/source/unoidlprovider.cxx +++ b/unoidl/source/unoidlprovider.cxx @@ -665,7 +665,7 @@ public: {} private: - virtual ~UnoidlCursor() throw () override {} + virtual ~UnoidlCursor() noexcept override {} virtual rtl::Reference< Entity > getNext(OUString * name) override; @@ -707,7 +707,7 @@ public: } private: - virtual ~UnoidlModuleEntity() throw () override {} + virtual ~UnoidlModuleEntity() noexcept override {} virtual std::vector< OUString > getMemberNames() const override; @@ -1401,7 +1401,7 @@ rtl::Reference< Entity > UnoidlProvider::findEntity(OUString const & name) const } } -UnoidlProvider::~UnoidlProvider() throw () {} +UnoidlProvider::~UnoidlProvider() noexcept {} } diff --git a/unoidl/source/unoidlprovider.hxx b/unoidl/source/unoidlprovider.hxx index 1e80d7e44b6b..734f8592b814 100644 --- a/unoidl/source/unoidlprovider.hxx +++ b/unoidl/source/unoidlprovider.hxx @@ -45,7 +45,7 @@ public: const override; private: - virtual ~UnoidlProvider() throw () override; + virtual ~UnoidlProvider() noexcept override; rtl::Reference< detail::MappedFile > file_; NestedMap map_; |