Kaydet (Commit) 709e99af authored tarafından Julien Nabet's avatar Julien Nabet

Replace IMPL_FORWARD_LOOP in sfx2/source/bastyp/fltfnc.cxx

Change-Id: Ic9eda24be82a54c3907ffe6eb749e927db87dee7
Reviewed-on: https://gerrit.libreoffice.org/23605Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst fa7416a6
...@@ -154,16 +154,23 @@ public: ...@@ -154,16 +154,23 @@ public:
} }
}; };
#define IMPL_FORWARD_LOOP( aMethod, ArgType, aArg ) \ std::shared_ptr<const SfxFilter> SfxFilterContainer::GetFilter4EA(const OUString& rEA, SfxFilterFlags nMust, SfxFilterFlags nDont) const
std::shared_ptr<const SfxFilter> SfxFilterContainer::aMethod( ArgType aArg, SfxFilterFlags nMust, SfxFilterFlags nDont ) const \ {
{\ SfxFilterMatcher aMatch(pImpl->aName);
SfxFilterMatcher aMatch( pImpl->aName ); \ return aMatch.GetFilter4EA(rEA, nMust, nDont);
return aMatch.aMethod( aArg, nMust, nDont ); \ }
std::shared_ptr<const SfxFilter> SfxFilterContainer::GetFilter4Extension(const OUString& rExt, SfxFilterFlags nMust, SfxFilterFlags nDont) const
{
SfxFilterMatcher aMatch(pImpl->aName);
return aMatch.GetFilter4Extension(rExt, nMust, nDont);
} }
IMPL_FORWARD_LOOP( GetFilter4EA, const OUString&, rEA ); std::shared_ptr<const SfxFilter> SfxFilterContainer::GetFilter4FilterName(const OUString& rName, SfxFilterFlags nMust, SfxFilterFlags nDont) const
IMPL_FORWARD_LOOP( GetFilter4Extension, const OUString&, rExt ); {
IMPL_FORWARD_LOOP( GetFilter4FilterName, const OUString&, rName ); SfxFilterMatcher aMatch(pImpl->aName);
return aMatch.GetFilter4FilterName(rName, nMust, nDont);
}
std::shared_ptr<const SfxFilter> SfxFilterContainer::GetAnyFilter( SfxFilterFlags nMust, SfxFilterFlags nDont ) const std::shared_ptr<const SfxFilter> SfxFilterContainer::GetAnyFilter( SfxFilterFlags nMust, SfxFilterFlags nDont ) const
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment