diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-09-04 15:08:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-05 08:56:58 +0200 |
commit | 90f3182141d37407715254d5118aae907d559b41 (patch) | |
tree | c114bc0641d92f0e4bcfad86f6d9ddd0acf4ecee /dbaccess/source/ui/misc/defaultobjectnamecheck.cxx | |
parent | 5f194a2705449698a4760982913fc2592720be6b (diff) |
HierarchicalNameCheck doesn't need a pimpl
already module private≈
Change-Id: Id5ea44b88c5cd6776d41fc71ac6c5fa4d639aab9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139366
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/misc/defaultobjectnamecheck.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/defaultobjectnamecheck.cxx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx b/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx index 809e90a777cc..d2a158d2b76e 100644 --- a/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx +++ b/dbaccess/source/ui/misc/defaultobjectnamecheck.cxx @@ -67,21 +67,13 @@ namespace dbaui } - // HierarchicalNameCheck_Impl - struct HierarchicalNameCheck_Impl - { - Reference< XHierarchicalNameAccess > xHierarchicalNames; - OUString sRelativeRoot; - }; - // HierarchicalNameCheck HierarchicalNameCheck::HierarchicalNameCheck( const Reference< XHierarchicalNameAccess >& _rxNames, const OUString& _rRelativeRoot ) - :m_pImpl( new HierarchicalNameCheck_Impl ) { - m_pImpl->xHierarchicalNames = _rxNames; - m_pImpl->sRelativeRoot = _rRelativeRoot; + mxHierarchicalNames = _rxNames; + msRelativeRoot = _rRelativeRoot; - if ( !m_pImpl->xHierarchicalNames.is() ) + if ( !mxHierarchicalNames.is() ) throw IllegalArgumentException(); } @@ -94,15 +86,15 @@ namespace dbaui try { OUStringBuffer aCompleteName; - if ( !m_pImpl->sRelativeRoot.isEmpty() ) + if ( !msRelativeRoot.isEmpty() ) { - aCompleteName.append( m_pImpl->sRelativeRoot ); + aCompleteName.append( msRelativeRoot ); aCompleteName.append( "/" ); } aCompleteName.append( _rObjectName ); OUString sCompleteName( aCompleteName.makeStringAndClear() ); - if ( !m_pImpl->xHierarchicalNames->hasByHierarchicalName( sCompleteName ) ) + if ( !mxHierarchicalNames->hasByHierarchicalName( sCompleteName ) ) return true; } catch( const Exception& ) |