diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-15 15:54:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-18 15:30:08 +0200 |
commit | d1379416c6915dd48fa5e350460215aa3d3e6ce8 (patch) | |
tree | d295892a6d048901d1b83edb3b7b6573738669dd /svx/source | |
parent | 142997f2e91b4e9e994babcf3221ef07105e2cc6 (diff) |
Avoid reserved identifiers
Change-Id: Ie20bd7a9b3824ce2208d23ded2eae4959dff7bc4
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 61 | ||||
-rw-r--r-- | svx/source/form/filtnav.cxx | 42 | ||||
-rw-r--r-- | svx/source/form/fmtools.cxx | 4 | ||||
-rw-r--r-- | svx/source/form/fmvwimp.cxx | 4 | ||||
-rw-r--r-- | svx/source/form/formcontroller.cxx | 64 | ||||
-rw-r--r-- | svx/source/form/formcontrolling.cxx | 16 | ||||
-rw-r--r-- | svx/source/inc/fmvwimp.hxx | 4 | ||||
-rw-r--r-- | svx/source/inc/formcontroller.hxx | 14 | ||||
-rw-r--r-- | svx/source/inc/formcontrolling.hxx | 2 | ||||
-rw-r--r-- | svx/source/inc/gridcell.hxx | 16 |
10 files changed, 110 insertions, 117 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index d2577e6ad104..00786110d30e 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -3263,14 +3263,9 @@ void FmXGridCell::setLock(sal_Bool _bLock) throw( RuntimeException, std::excepti } -void SAL_CALL FmXGridCell::setPosSize( ::sal_Int32 _XX, ::sal_Int32 _Y, ::sal_Int32 _Width, ::sal_Int32 _Height, ::sal_Int16 _Flags ) throw (RuntimeException, std::exception) +void SAL_CALL FmXGridCell::setPosSize( ::sal_Int32, ::sal_Int32, ::sal_Int32, ::sal_Int32, ::sal_Int16 ) throw (RuntimeException, std::exception) { OSL_FAIL( "FmXGridCell::setPosSize: not implemented" ); - (void)_XX; - (void)_Y; - (void)_Width; - (void)_Height; - (void)_Flags; // not allowed to tamper with this for a grid cell } @@ -3282,18 +3277,16 @@ awt::Rectangle SAL_CALL FmXGridCell::getPosSize( ) throw (RuntimeException, std } -void SAL_CALL FmXGridCell::setVisible( sal_Bool _Visible ) throw (RuntimeException, std::exception) +void SAL_CALL FmXGridCell::setVisible( sal_Bool ) throw (RuntimeException, std::exception) { OSL_FAIL( "FmXGridCell::setVisible: not implemented" ); - (void)_Visible; // not allowed to tamper with this for a grid cell } -void SAL_CALL FmXGridCell::setEnable( sal_Bool _Enable ) throw (RuntimeException, std::exception) +void SAL_CALL FmXGridCell::setEnable( sal_Bool ) throw (RuntimeException, std::exception) { OSL_FAIL( "FmXGridCell::setEnable: not implemented" ); - (void)_Enable; // not allowed to tamper with this for a grid cell } @@ -3769,15 +3762,15 @@ void SAL_CALL FmXEditCell::setMaxTextLen( sal_Int16 nLen ) throw( RuntimeExcepti } -void SAL_CALL FmXEditCell::addChangeListener( const Reference< form::XChangeListener >& _Listener ) throw (RuntimeException, std::exception) +void SAL_CALL FmXEditCell::addChangeListener( const Reference< form::XChangeListener >& Listener ) throw (RuntimeException, std::exception) { - m_aChangeListeners.addInterface( _Listener ); + m_aChangeListeners.addInterface( Listener ); } -void SAL_CALL FmXEditCell::removeChangeListener( const Reference< form::XChangeListener >& _Listener ) throw (RuntimeException, std::exception) +void SAL_CALL FmXEditCell::removeChangeListener( const Reference< form::XChangeListener >& Listener ) throw (RuntimeException, std::exception) { - m_aChangeListeners.removeInterface( _Listener ); + m_aChangeListeners.removeInterface( Listener ); } @@ -3926,32 +3919,32 @@ void SAL_CALL FmXCheckBoxCell::enableTriState( sal_Bool b ) throw( RuntimeExcept } -void SAL_CALL FmXCheckBoxCell::addActionListener( const Reference< awt::XActionListener >& _Listener ) throw (RuntimeException, std::exception) +void SAL_CALL FmXCheckBoxCell::addActionListener( const Reference< awt::XActionListener >& Listener ) throw (RuntimeException, std::exception) { - m_aActionListeners.addInterface( _Listener ); + m_aActionListeners.addInterface( Listener ); } -void SAL_CALL FmXCheckBoxCell::removeActionListener( const Reference< awt::XActionListener >& _Listener ) throw (RuntimeException, std::exception) +void SAL_CALL FmXCheckBoxCell::removeActionListener( const Reference< awt::XActionListener >& Listener ) throw (RuntimeException, std::exception) { - m_aActionListeners.removeInterface( _Listener ); + m_aActionListeners.removeInterface( Listener ); } -void SAL_CALL FmXCheckBoxCell::setLabel( const OUString& _Label ) throw (RuntimeException, std::exception) +void SAL_CALL FmXCheckBoxCell::setLabel( const OUString& Label ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; if ( m_pColumn ) { DbGridControl& rGrid( m_pColumn->GetParent() ); - rGrid.SetColumnTitle( rGrid.GetColumnId( m_pColumn->GetFieldPos() ), _Label ); + rGrid.SetColumnTitle( rGrid.GetColumnId( m_pColumn->GetFieldPos() ), Label ); } } -void SAL_CALL FmXCheckBoxCell::setActionCommand( const OUString& _Command ) throw (RuntimeException, std::exception) +void SAL_CALL FmXCheckBoxCell::setActionCommand( const OUString& Command ) throw (RuntimeException, std::exception) { - m_aActionCommand = _Command; + m_aActionCommand = Command; } @@ -4409,37 +4402,37 @@ void SAL_CALL FmXComboBoxCell::removeActionListener(const Reference< awt::XActio } -void SAL_CALL FmXComboBoxCell::addItem( const OUString& _Item, sal_Int16 _Pos ) throw( RuntimeException, std::exception ) +void SAL_CALL FmXComboBoxCell::addItem( const OUString& Item, sal_Int16 Pos ) throw( RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_pComboBox ) - m_pComboBox->InsertEntry( _Item, _Pos ); + m_pComboBox->InsertEntry( Item, Pos ); } -void SAL_CALL FmXComboBoxCell::addItems( const Sequence< OUString >& _Items, sal_Int16 _Pos ) throw( RuntimeException, std::exception ) +void SAL_CALL FmXComboBoxCell::addItems( const Sequence< OUString >& Items, sal_Int16 Pos ) throw( RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_pComboBox ) { - sal_uInt16 nP = _Pos; - for ( sal_Int32 n = 0; n < _Items.getLength(); n++ ) + sal_uInt16 nP = Pos; + for ( sal_Int32 n = 0; n < Items.getLength(); n++ ) { - m_pComboBox->InsertEntry( _Items.getConstArray()[n], nP ); - if ( _Pos != -1 ) + m_pComboBox->InsertEntry( Items.getConstArray()[n], nP ); + if ( Pos != -1 ) nP++; } } } -void SAL_CALL FmXComboBoxCell::removeItems( sal_Int16 _Pos, sal_Int16 _Count ) throw( RuntimeException, std::exception ) +void SAL_CALL FmXComboBoxCell::removeItems( sal_Int16 Pos, sal_Int16 Count ) throw( RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_pComboBox ) { - for ( sal_uInt16 n = _Count; n; ) - m_pComboBox->RemoveEntryAt( _Pos + (--n) ); + for ( sal_uInt16 n = Count; n; ) + m_pComboBox->RemoveEntryAt( Pos + (--n) ); } } @@ -4451,10 +4444,10 @@ sal_Int16 SAL_CALL FmXComboBoxCell::getItemCount() throw( RuntimeException, std: } -OUString SAL_CALL FmXComboBoxCell::getItem( sal_Int16 _Pos ) throw( RuntimeException, std::exception ) +OUString SAL_CALL FmXComboBoxCell::getItem( sal_Int16 Pos ) throw( RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); - return m_pComboBox ? OUString(m_pComboBox->GetEntry(_Pos)) : OUString(); + return m_pComboBox ? OUString(m_pComboBox->GetEntry(Pos)) : OUString(); } Sequence< OUString > SAL_CALL FmXComboBoxCell::getItems() throw( RuntimeException, std::exception ) diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx index 97cde24dd42e..29d62bc89d33 100644 --- a/svx/source/form/filtnav.cxx +++ b/svx/source/form/filtnav.cxx @@ -261,9 +261,9 @@ public: virtual void SAL_CALL disposing(const EventObject& Source) throw( RuntimeException, std::exception ) override; // XFilterControllerListener - virtual void SAL_CALL predicateExpressionChanged( const FilterEvent& _Event ) throw (RuntimeException, std::exception) override; - virtual void SAL_CALL disjunctiveTermRemoved( const FilterEvent& _Event ) throw (RuntimeException, std::exception) override; - virtual void SAL_CALL disjunctiveTermAdded( const FilterEvent& _Event ) throw (RuntimeException, std::exception) override; + virtual void SAL_CALL predicateExpressionChanged( const FilterEvent& Event ) throw (RuntimeException, std::exception) override; + virtual void SAL_CALL disjunctiveTermRemoved( const FilterEvent& Event ) throw (RuntimeException, std::exception) override; + virtual void SAL_CALL disjunctiveTermAdded( const FilterEvent& Event ) throw (RuntimeException, std::exception) override; // helpers void dispose() throw( RuntimeException ); @@ -373,7 +373,7 @@ namespace // XFilterControllerListener -void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) throw( RuntimeException, std::exception ) +void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& Event ) throw( RuntimeException, std::exception ) { SolarMutexGuard aGuard; @@ -381,8 +381,8 @@ void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) th return; // the controller which sent the event - Reference< XFormController > xController( _Event.Source, UNO_QUERY_THROW ); - Reference< XFilterController > xFilterController( _Event.Source, UNO_QUERY_THROW ); + Reference< XFormController > xController( Event.Source, UNO_QUERY_THROW ); + Reference< XFilterController > xFilterController( Event.Source, UNO_QUERY_THROW ); Reference< XForm > xForm( xController->getModel(), UNO_QUERY_THROW ); FmFormItem* pFormItem = m_pModel->Find( m_pModel->m_aChildren, xForm ); @@ -394,12 +394,12 @@ void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) th FmFilterData* pData = pFormItem->GetChildren()[nActiveTerm]; FmFilterItems& rFilter = dynamic_cast<FmFilterItems&>(*pData); - FmFilterItem* pFilterItem = rFilter.Find( _Event.FilterComponent ); + FmFilterItem* pFilterItem = rFilter.Find( Event.FilterComponent ); if ( pFilterItem ) { - if ( !_Event.PredicateExpression.isEmpty()) + if ( !Event.PredicateExpression.isEmpty()) { - pFilterItem->SetText( _Event.PredicateExpression ); + pFilterItem->SetText( Event.PredicateExpression ); // UI benachrichtigen FmFilterTextChangedHint aChangeHint(pFilterItem); m_pModel->Broadcast( aChangeHint ); @@ -413,9 +413,9 @@ void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) th else { // searching the component by field name - OUString aFieldName( lcl_getLabelName_nothrow( xFilterController->getFilterComponent( _Event.FilterComponent ) ) ); + OUString aFieldName( lcl_getLabelName_nothrow( xFilterController->getFilterComponent( Event.FilterComponent ) ) ); - pFilterItem = new FmFilterItem(&rFilter, aFieldName, _Event.PredicateExpression, _Event.FilterComponent); + pFilterItem = new FmFilterItem(&rFilter, aFieldName, Event.PredicateExpression, Event.FilterComponent); m_pModel->Insert(rFilter.GetChildren().end(), pFilterItem); } @@ -424,12 +424,12 @@ void FmFilterAdapter::predicateExpressionChanged( const FilterEvent& _Event ) th } -void SAL_CALL FmFilterAdapter::disjunctiveTermRemoved( const FilterEvent& _Event ) throw (RuntimeException, std::exception) +void SAL_CALL FmFilterAdapter::disjunctiveTermRemoved( const FilterEvent& Event ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; - Reference< XFormController > xController( _Event.Source, UNO_QUERY_THROW ); - Reference< XFilterController > xFilterController( _Event.Source, UNO_QUERY_THROW ); + Reference< XFormController > xController( Event.Source, UNO_QUERY_THROW ); + Reference< XFilterController > xFilterController( Event.Source, UNO_QUERY_THROW ); Reference< XForm > xForm( xController->getModel(), UNO_QUERY_THROW ); FmFormItem* pFormItem = m_pModel->Find( m_pModel->m_aChildren, xForm ); @@ -438,13 +438,13 @@ void SAL_CALL FmFilterAdapter::disjunctiveTermRemoved( const FilterEvent& _Event return; ::std::vector< FmFilterData* >& rTermItems = pFormItem->GetChildren(); - const bool bValidIndex = ( _Event.DisjunctiveTerm >= 0 ) && ( (size_t)_Event.DisjunctiveTerm < rTermItems.size() ); + const bool bValidIndex = ( Event.DisjunctiveTerm >= 0 ) && ( (size_t)Event.DisjunctiveTerm < rTermItems.size() ); OSL_ENSURE( bValidIndex, "FmFilterAdapter::disjunctiveTermRemoved: invalid term index!" ); if ( !bValidIndex ) return; // if the first term was removed, then the to-be first term needs its text updated - if ( _Event.DisjunctiveTerm == 0 ) + if ( Event.DisjunctiveTerm == 0 ) { rTermItems[1]->SetText( SVX_RESSTR(RID_STR_FILTER_FILTER_FOR)); FmFilterTextChangedHint aChangeHint( rTermItems[1] ); @@ -452,19 +452,19 @@ void SAL_CALL FmFilterAdapter::disjunctiveTermRemoved( const FilterEvent& _Event } // finally remove the entry from the model - m_pModel->Remove( rTermItems.begin() + _Event.DisjunctiveTerm ); + m_pModel->Remove( rTermItems.begin() + Event.DisjunctiveTerm ); // ensure there's one empty term in the filter, just in case the currently removed one was the last empty one m_pModel->EnsureEmptyFilterRows( *pFormItem ); } -void SAL_CALL FmFilterAdapter::disjunctiveTermAdded( const FilterEvent& _Event ) throw (RuntimeException, std::exception) +void SAL_CALL FmFilterAdapter::disjunctiveTermAdded( const FilterEvent& Event ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; - Reference< XFormController > xController( _Event.Source, UNO_QUERY_THROW ); - Reference< XFilterController > xFilterController( _Event.Source, UNO_QUERY_THROW ); + Reference< XFormController > xController( Event.Source, UNO_QUERY_THROW ); + Reference< XFilterController > xFilterController( Event.Source, UNO_QUERY_THROW ); Reference< XForm > xForm( xController->getModel(), UNO_QUERY_THROW ); FmFormItem* pFormItem = m_pModel->Find( m_pModel->m_aChildren, xForm ); @@ -472,7 +472,7 @@ void SAL_CALL FmFilterAdapter::disjunctiveTermAdded( const FilterEvent& _Event ) if ( !pFormItem ) return; - const sal_Int32 nInsertPos = _Event.DisjunctiveTerm; + const sal_Int32 nInsertPos = Event.DisjunctiveTerm; bool bValidIndex = ( nInsertPos >= 0 ) && ( (size_t)nInsertPos <= pFormItem->GetChildren().size() ); if ( !bValidIndex ) { diff --git a/svx/source/form/fmtools.cxx b/svx/source/form/fmtools.cxx index 897b3c7ecb0b..daa77a360844 100644 --- a/svx/source/form/fmtools.cxx +++ b/svx/source/form/fmtools.cxx @@ -317,13 +317,13 @@ FmXDisposeMultiplexer::~FmXDisposeMultiplexer() // css::lang::XEventListener -void FmXDisposeMultiplexer::disposing(const css::lang::EventObject& _Source) throw( RuntimeException, std::exception ) +void FmXDisposeMultiplexer::disposing(const css::lang::EventObject& Source) throw( RuntimeException, std::exception ) { Reference< css::lang::XEventListener> xPreventDelete(this); if (m_pListener) { - m_pListener->disposing(_Source, m_nId); + m_pListener->disposing(Source, m_nId); m_pListener->setAdapter(nullptr); m_pListener = nullptr; } diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx index a20630e4f710..a2e1e1c6e9fb 100644 --- a/svx/source/form/fmvwimp.cxx +++ b/svx/source/form/fmvwimp.cxx @@ -246,11 +246,11 @@ Any SAL_CALL FormViewPageWindowAdapter::getByIndex(sal_Int32 nIndex) throw( Inde return aElement; } -void SAL_CALL FormViewPageWindowAdapter::makeVisible( const Reference< XControl >& _Control ) throw (RuntimeException, std::exception) +void SAL_CALL FormViewPageWindowAdapter::makeVisible( const Reference< XControl >& Control ) throw (RuntimeException, std::exception) { SolarMutexGuard aSolarGuard; - Reference< XWindow > xWindow( _Control, UNO_QUERY ); + Reference< XWindow > xWindow( Control, UNO_QUERY ); if ( xWindow.is() && m_pViewImpl->getView() && m_pWindow ) { awt::Rectangle aRect = xWindow->getPosSize(); diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx index 8b09b05952ba..4629ac9fdf22 100644 --- a/svx/source/form/formcontroller.cxx +++ b/svx/source/form/formcontroller.cxx @@ -888,15 +888,15 @@ void FormController::fillProperties( // XFilterController -void SAL_CALL FormController::addFilterControllerListener( const Reference< XFilterControllerListener >& _Listener ) throw( RuntimeException, std::exception ) +void SAL_CALL FormController::addFilterControllerListener( const Reference< XFilterControllerListener >& Listener ) throw( RuntimeException, std::exception ) { - m_aFilterListeners.addInterface( _Listener ); + m_aFilterListeners.addInterface( Listener ); } -void SAL_CALL FormController::removeFilterControllerListener( const Reference< XFilterControllerListener >& _Listener ) throw( RuntimeException, std::exception ) +void SAL_CALL FormController::removeFilterControllerListener( const Reference< XFilterControllerListener >& Listener ) throw( RuntimeException, std::exception ) { - m_aFilterListeners.removeInterface( _Listener ); + m_aFilterListeners.removeInterface( Listener ); } @@ -918,34 +918,34 @@ void SAL_CALL FormController::removeFilterControllerListener( const Reference< X } -void SAL_CALL FormController::setPredicateExpression( ::sal_Int32 _Component, ::sal_Int32 _Term, const OUString& _PredicateExpression ) throw( RuntimeException, IndexOutOfBoundsException, std::exception ) +void SAL_CALL FormController::setPredicateExpression( ::sal_Int32 Component, ::sal_Int32 Term, const OUString& PredicateExpression ) throw( RuntimeException, IndexOutOfBoundsException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); impl_checkDisposed_throw(); - if ( ( _Component < 0 ) || ( _Component >= getFilterComponents() ) || ( _Term < 0 ) || ( _Term >= getDisjunctiveTerms() ) ) + if ( ( Component < 0 ) || ( Component >= getFilterComponents() ) || ( Term < 0 ) || ( Term >= getDisjunctiveTerms() ) ) throw IndexOutOfBoundsException( OUString(), *this ); - Reference< XTextComponent > xText( m_aFilterComponents[ _Component ] ); - xText->setText( _PredicateExpression ); + Reference< XTextComponent > xText( m_aFilterComponents[ Component ] ); + xText->setText( PredicateExpression ); - FmFilterRow& rFilterRow = m_aFilterRows[ _Term ]; - if ( !_PredicateExpression.isEmpty() ) - rFilterRow[ xText ] = _PredicateExpression; + FmFilterRow& rFilterRow = m_aFilterRows[ Term ]; + if ( !PredicateExpression.isEmpty() ) + rFilterRow[ xText ] = PredicateExpression; else rFilterRow.erase( xText ); } -Reference< XControl > FormController::getFilterComponent( ::sal_Int32 _Component ) throw( RuntimeException, IndexOutOfBoundsException, std::exception ) +Reference< XControl > FormController::getFilterComponent( ::sal_Int32 Component ) throw( RuntimeException, IndexOutOfBoundsException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); impl_checkDisposed_throw(); - if ( ( _Component < 0 ) || ( _Component >= getFilterComponents() ) ) + if ( ( Component < 0 ) || ( Component >= getFilterComponents() ) ) throw IndexOutOfBoundsException( OUString(), *this ); - return Reference< XControl >( m_aFilterComponents[ _Component ], UNO_QUERY ); + return Reference< XControl >( m_aFilterComponents[ Component ], UNO_QUERY ); } @@ -982,17 +982,17 @@ Sequence< Sequence< OUString > > FormController::getPredicateExpressions() throw } -void SAL_CALL FormController::removeDisjunctiveTerm( ::sal_Int32 _Term ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) +void SAL_CALL FormController::removeDisjunctiveTerm( ::sal_Int32 Term ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) { // SYNCHRONIZED --> ::osl::ClearableMutexGuard aGuard( m_aMutex ); impl_checkDisposed_throw(); - if ( ( _Term < 0 ) || ( _Term >= getDisjunctiveTerms() ) ) + if ( ( Term < 0 ) || ( Term >= getDisjunctiveTerms() ) ) throw IndexOutOfBoundsException( OUString(), *this ); // if the to-be-deleted row is our current row, we need to shift - if ( _Term == m_nCurrentFilterPosition ) + if ( Term == m_nCurrentFilterPosition ) { if ( m_nCurrentFilterPosition < sal_Int32( m_aFilterRows.size() - 1 ) ) ++m_nCurrentFilterPosition; @@ -1000,11 +1000,11 @@ void SAL_CALL FormController::removeDisjunctiveTerm( ::sal_Int32 _Term ) throw ( --m_nCurrentFilterPosition; } - FmFilterRows::iterator pos = m_aFilterRows.begin() + _Term; + FmFilterRows::iterator pos = m_aFilterRows.begin() + Term; m_aFilterRows.erase( pos ); // adjust m_nCurrentFilterPosition if the removed row preceded it - if ( _Term < m_nCurrentFilterPosition ) + if ( Term < m_nCurrentFilterPosition ) --m_nCurrentFilterPosition; SAL_WARN_IF( !( ( m_nCurrentFilterPosition < 0 ) != ( m_aFilterRows.empty() ) ), @@ -1015,7 +1015,7 @@ void SAL_CALL FormController::removeDisjunctiveTerm( ::sal_Int32 _Term ) throw ( FilterEvent aEvent; aEvent.Source = *this; - aEvent.DisjunctiveTerm = _Term; + aEvent.DisjunctiveTerm = Term; aGuard.clear(); // <-- SYNCHRONIZED @@ -1043,18 +1043,18 @@ void SAL_CALL FormController::appendEmptyDisjunctiveTerm() throw (RuntimeExcepti } -void SAL_CALL FormController::setActiveTerm( ::sal_Int32 _ActiveTerm ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) +void SAL_CALL FormController::setActiveTerm( ::sal_Int32 ActiveTerm ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); impl_checkDisposed_throw(); - if ( ( _ActiveTerm < 0 ) || ( _ActiveTerm >= getDisjunctiveTerms() ) ) + if ( ( ActiveTerm < 0 ) || ( ActiveTerm >= getDisjunctiveTerms() ) ) throw IndexOutOfBoundsException( OUString(), *this ); - if ( _ActiveTerm == getActiveTerm() ) + if ( ActiveTerm == getActiveTerm() ) return; - m_nCurrentFilterPosition = _ActiveTerm; + m_nCurrentFilterPosition = ActiveTerm; impl_setTextOnAllFilter_throw(); } @@ -2965,17 +2965,17 @@ void SAL_CALL FormController::removeActivateListener(const Reference< XFormContr } -void SAL_CALL FormController::addChildController( const Reference< XFormController >& _ChildController ) throw( RuntimeException, IllegalArgumentException, std::exception ) +void SAL_CALL FormController::addChildController( const Reference< XFormController >& ChildController ) throw( RuntimeException, IllegalArgumentException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); impl_checkDisposed_throw(); - if ( !_ChildController.is() ) + if ( !ChildController.is() ) throw IllegalArgumentException( OUString(), *this, 1 ); // TODO: (localized) error message // the parent of our (to-be-)child must be our own model - Reference< XFormComponent > xFormOfChild( _ChildController->getModel(), UNO_QUERY ); + Reference< XFormComponent > xFormOfChild( ChildController->getModel(), UNO_QUERY ); if ( !xFormOfChild.is() ) throw IllegalArgumentException( OUString(), *this, 1 ); // TODO: (localized) error message @@ -2984,8 +2984,8 @@ void SAL_CALL FormController::addChildController( const Reference< XFormControll throw IllegalArgumentException( OUString(), *this, 1 ); // TODO: (localized) error message - m_aChildren.push_back( _ChildController ); - _ChildController->setParent( *this ); + m_aChildren.push_back( ChildController ); + ChildController->setParent( *this ); // search the position of the model within the form sal_uInt32 nPos = m_xModelAsIndex->getCount(); @@ -2995,7 +2995,7 @@ void SAL_CALL FormController::addChildController( const Reference< XFormControll m_xModelAsIndex->getByIndex(--nPos) >>= xTemp; if ( xFormOfChild == xTemp ) { - m_xModelAsManager->attach( nPos, Reference<XInterface>( _ChildController, UNO_QUERY ), makeAny( _ChildController) ); + m_xModelAsManager->attach( nPos, Reference<XInterface>( ChildController, UNO_QUERY ), makeAny( ChildController) ); break; } } @@ -4027,11 +4027,11 @@ sal_Bool SAL_CALL FormController::confirmDelete(const RowChangeEvent& aEvent) th } -void SAL_CALL FormController::invalidateFeatures( const Sequence< ::sal_Int16 >& _Features ) throw (RuntimeException, std::exception) +void SAL_CALL FormController::invalidateFeatures( const Sequence< ::sal_Int16 >& Features ) throw (RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); // for now, just copy the ids of the features, because .... - ::std::copy( _Features.begin(), _Features.end(), + ::std::copy( Features.begin(), Features.end(), ::std::insert_iterator< ::std::set< sal_Int16 > >( m_aInvalidFeatures, m_aInvalidFeatures.begin() ) ); diff --git a/svx/source/form/formcontrolling.cxx b/svx/source/form/formcontrolling.cxx index da0d42ddae28..2d93b6357256 100644 --- a/svx/source/form/formcontrolling.cxx +++ b/svx/source/form/formcontrolling.cxx @@ -155,9 +155,9 @@ namespace svx struct FormFeatureToSlotId : public ::std::unary_function< sal_Int16, sal_Int32 > { - sal_Int32 operator()( sal_Int16 _FormFeature ) + sal_Int32 operator()( sal_Int16 FormFeature ) { - return FeatureSlotTranslation::getSlotIdForFormFeature( _FormFeature ); + return FeatureSlotTranslation::getSlotIdForFormFeature( FormFeature ); } }; } @@ -385,16 +385,16 @@ namespace svx } - void SAL_CALL FormControllerHelper::invalidateFeatures( const Sequence< ::sal_Int16 >& _Features ) throw (RuntimeException, std::exception) + void SAL_CALL FormControllerHelper::invalidateFeatures( const Sequence< ::sal_Int16 >& Features ) throw (RuntimeException, std::exception) { if ( !m_pInvalidationCallback ) // nobody's interested in ... return; - ::std::vector< sal_Int32 > aFeatures( _Features.getLength() ); + ::std::vector< sal_Int32 > aFeatures( Features.getLength() ); ::std::transform( - _Features.getConstArray(), - _Features.getConstArray() + _Features.getLength(), + Features.getConstArray(), + Features.getConstArray() + Features.getLength(), aFeatures.begin(), FormFeatureToSlotId() ); @@ -446,10 +446,10 @@ namespace svx } - void SAL_CALL FormControllerHelper::errorOccured( const SQLErrorEvent& _Event ) throw (RuntimeException, std::exception) + void SAL_CALL FormControllerHelper::errorOccured( const SQLErrorEvent& Event ) throw (RuntimeException, std::exception) { OSL_ENSURE( !m_aOperationError.hasValue(), "FormControllerHelper::errorOccurred: two errors during one operation?" ); - m_aOperationError = _Event.Reason; + m_aOperationError = Event.Reason; } diff --git a/svx/source/inc/fmvwimp.hxx b/svx/source/inc/fmvwimp.hxx index 32d4459db349..bda4a412820b 100644 --- a/svx/source/inc/fmvwimp.hxx +++ b/svx/source/inc/fmvwimp.hxx @@ -109,10 +109,10 @@ public: // XIndexAccess virtual sal_Int32 SAL_CALL getCount() throw(css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 _Index) throw(css::lang::IndexOutOfBoundsException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; + virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) throw(css::lang::IndexOutOfBoundsException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; // XFormControllerContext - virtual void SAL_CALL makeVisible( const css::uno::Reference< css::awt::XControl >& _Control ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL makeVisible( const css::uno::Reference< css::awt::XControl >& Control ) throw (css::uno::RuntimeException, std::exception) override; const ::std::vector< css::uno::Reference< css::form::runtime::XFormController > >& GetList() {return m_aControllerList;} diff --git a/svx/source/inc/formcontroller.hxx b/svx/source/inc/formcontroller.hxx index 1e862e9ec2ae..1e1e611a474d 100644 --- a/svx/source/inc/formcontroller.hxx +++ b/svx/source/inc/formcontroller.hxx @@ -252,15 +252,15 @@ namespace svxform // XFilterController virtual ::sal_Int32 SAL_CALL getFilterComponents() throw (css::uno::RuntimeException, std::exception) override; virtual ::sal_Int32 SAL_CALL getDisjunctiveTerms() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL addFilterControllerListener( const css::uno::Reference< css::form::runtime::XFilterControllerListener >& _Listener ) throw( css::uno::RuntimeException, std::exception ) override; - virtual void SAL_CALL removeFilterControllerListener( const css::uno::Reference< css::form::runtime::XFilterControllerListener >& _Listener ) throw( css::uno::RuntimeException, std::exception ) override; - virtual void SAL_CALL setPredicateExpression( ::sal_Int32 _Component, ::sal_Int32 _Term, const OUString& _PredicateExpression ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override; - virtual css::uno::Reference< css::awt::XControl > SAL_CALL getFilterComponent( ::sal_Int32 _Component ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL addFilterControllerListener( const css::uno::Reference< css::form::runtime::XFilterControllerListener >& Listener ) throw( css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL removeFilterControllerListener( const css::uno::Reference< css::form::runtime::XFilterControllerListener >& Listener ) throw( css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL setPredicateExpression( ::sal_Int32 Component, ::sal_Int32 Term, const OUString& PredicateExpression ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference< css::awt::XControl > SAL_CALL getFilterComponent( ::sal_Int32 Component ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override; virtual css::uno::Sequence< css::uno::Sequence< OUString > > SAL_CALL getPredicateExpressions() throw( css::uno::RuntimeException, std::exception ) override; - virtual void SAL_CALL removeDisjunctiveTerm( ::sal_Int32 _Term ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL removeDisjunctiveTerm( ::sal_Int32 Term ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL appendEmptyDisjunctiveTerm() throw (css::uno::RuntimeException, std::exception) override; virtual ::sal_Int32 SAL_CALL getActiveTerm() throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setActiveTerm( ::sal_Int32 _ActiveTerm ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setActiveTerm( ::sal_Int32 ActiveTerm ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::exception) override; // XElementAccess virtual css::uno::Type SAL_CALL getElementType() throw( css::uno::RuntimeException, std::exception ) override; @@ -331,7 +331,7 @@ namespace svxform virtual css::uno::Reference< css::awt::XControl> SAL_CALL getCurrentControl() throw( css::uno::RuntimeException, std::exception ) override; virtual void SAL_CALL addActivateListener(const css::uno::Reference< css::form::XFormControllerListener>& l) throw( css::uno::RuntimeException, std::exception ) override; virtual void SAL_CALL removeActivateListener(const css::uno::Reference< css::form::XFormControllerListener>& l) throw( css::uno::RuntimeException, std::exception ) override; - virtual void SAL_CALL addChildController( const css::uno::Reference< css::form::runtime::XFormController >& _ChildController ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception ) override; + virtual void SAL_CALL addChildController( const css::uno::Reference< css::form::runtime::XFormController >& ChildController ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception ) override; virtual css::uno::Reference< css::form::runtime::XFormControllerContext > SAL_CALL getContext() throw (css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL setContext( const css::uno::Reference< css::form::runtime::XFormControllerContext >& _context ) throw (css::uno::RuntimeException, std::exception) override; diff --git a/svx/source/inc/formcontrolling.hxx b/svx/source/inc/formcontrolling.hxx index 74cc598f7331..a24aab1acfb2 100644 --- a/svx/source/inc/formcontrolling.hxx +++ b/svx/source/inc/formcontrolling.hxx @@ -188,7 +188,7 @@ namespace svx virtual void SAL_CALL invalidateAllFeatures() throw (css::uno::RuntimeException, std::exception) override; // XSQLErrorListener - virtual void SAL_CALL errorOccured( const css::sdb::SQLErrorEvent& _Event ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL errorOccured( const css::sdb::SQLErrorEvent& Event ) throw (css::uno::RuntimeException, std::exception) override; // XEventListener virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException, std::exception) override; diff --git a/svx/source/inc/gridcell.hxx b/svx/source/inc/gridcell.hxx index 786c49027728..a460967b4759 100644 --- a/svx/source/inc/gridcell.hxx +++ b/svx/source/inc/gridcell.hxx @@ -1043,18 +1043,18 @@ public: virtual void SAL_CALL disposing() override; // XComboBox - virtual void SAL_CALL addItemListener( const css::uno::Reference< css::awt::XItemListener >& _Listener ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL removeItemListener( const css::uno::Reference< css::awt::XItemListener >& _Listener ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL addActionListener( const css::uno::Reference< css::awt::XActionListener >& _Listener ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL removeActionListener( const css::uno::Reference< css::awt::XActionListener >& _Listener ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL addItem( const OUString& _Item, ::sal_Int16 _Pos ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL addItems( const css::uno::Sequence< OUString >& _Items, ::sal_Int16 _Pos ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL addItemListener( const css::uno::Reference< css::awt::XItemListener >& Listener ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL removeItemListener( const css::uno::Reference< css::awt::XItemListener >& Listener ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL addActionListener( const css::uno::Reference< css::awt::XActionListener >& Listener ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL removeActionListener( const css::uno::Reference< css::awt::XActionListener >& Listener ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL addItem( const OUString& Item, ::sal_Int16 Pos ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL addItems( const css::uno::Sequence< OUString >& Items, ::sal_Int16 Pos ) throw (css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL removeItems( ::sal_Int16 nPos, ::sal_Int16 nCount ) throw (css::uno::RuntimeException, std::exception) override; virtual ::sal_Int16 SAL_CALL getItemCount( ) throw (css::uno::RuntimeException, std::exception) override; - virtual OUString SAL_CALL getItem( ::sal_Int16 _Pos ) throw (css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getItem( ::sal_Int16 Pos ) throw (css::uno::RuntimeException, std::exception) override; virtual css::uno::Sequence< OUString > SAL_CALL getItems( ) throw (css::uno::RuntimeException, std::exception) override; virtual ::sal_Int16 SAL_CALL getDropDownLineCount( ) throw (css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setDropDownLineCount( ::sal_Int16 _Lines ) throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setDropDownLineCount( ::sal_Int16 Lines ) throw (css::uno::RuntimeException, std::exception) override; protected: virtual void onWindowEvent( const sal_uLong _nEventId, const vcl::Window& _rWindow, const void* _pEventData ) override; |