summaryrefslogtreecommitdiffstats
path: root/codemaker/source/cppumaker/dependencies.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-08 08:48:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-08 08:39:24 +0000
commit55717b14e0482c085595069d124ac9dd0c4e69c5 (patch)
treedd458e7cb4f1d90d01f58553980dad47326274c8 /codemaker/source/cppumaker/dependencies.hxx
parentoox, sfx2: can use std::move() here (diff)
downloadcore-55717b14e0482c085595069d124ac9dd0c4e69c5.tar.gz
core-55717b14e0482c085595069d124ac9dd0c4e69c5.zip
Remove newly-unnecessary #includes from cppumaker-generated files
...after e57ca02849c3d87142ff5ff9099a212e72b8139c "Remove dynamic exception specifications" dropped uses of UNO exception types from those generated files. This needed first adapting client code that implicitly depended on those #includes in the generated files it included ("Add missing #includes": 6dce9c6757823b9e89863716ae70ff4e8ddd4e60, a34d9150b419ee7471b96599d877ff1091d6b567, fed3783e77e00635e50622e7229b06c9e25451f1). Change-Id: Ia1defda2d586b69092f53feef3644875192cbea4 Reviewed-on: https://gerrit.libreoffice.org/34014 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'codemaker/source/cppumaker/dependencies.hxx')
-rw-r--r--codemaker/source/cppumaker/dependencies.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/codemaker/source/cppumaker/dependencies.hxx b/codemaker/source/cppumaker/dependencies.hxx
index e1513a3250cc..2434ce953223 100644
--- a/codemaker/source/cppumaker/dependencies.hxx
+++ b/codemaker/source/cppumaker/dependencies.hxx
@@ -41,10 +41,11 @@ namespace codemaker { namespace cppumaker {
class Dependencies {
public:
/**
- Flags to distinguish whether or not one entity depends on another entity
- because the second is a direct base of the first.
+ Flags to distinguish whether one entity depends on another entity because
+ the second is a direct base of the first or an exception thrown by the
+ first.
*/
- enum Kind { KIND_NO_BASE, KIND_BASE };
+ enum Kind { KIND_NORMAL, KIND_BASE, KIND_EXCEPTION };
typedef std::map< rtl::OUString, Kind > Map;
@@ -97,7 +98,7 @@ public:
bool hasSequenceDependency() const { return m_sequenceDependency; }
private:
- void insert(rtl::OUString const & name, bool base = false);
+ void insert(rtl::OUString const & name, Kind kind);
rtl::Reference< TypeManager > m_manager;
Map m_map;