diff --git a/kdecoration/breezebutton.h b/kdecoration/breezebutton.h --- a/kdecoration/breezebutton.h +++ b/kdecoration/breezebutton.h @@ -93,7 +93,7 @@ update(); } - qreal opacity( void ) const + qreal opacity() const { return m_opacity; } //@} @@ -116,8 +116,8 @@ //*@name colors //@{ - QColor foregroundColor( void ) const; - QColor backgroundColor( void ) const; + QColor foregroundColor() const; + QColor backgroundColor() const; //@} Flag m_flag = FlagNone; diff --git a/kdecoration/breezebutton.cpp b/kdecoration/breezebutton.cpp --- a/kdecoration/breezebutton.cpp +++ b/kdecoration/breezebutton.cpp @@ -353,7 +353,7 @@ } //__________________________________________________________________ - QColor Button::foregroundColor( void ) const + QColor Button::foregroundColor() const { auto d = qobject_cast( decoration() ); if( !d ) { @@ -389,7 +389,7 @@ } //__________________________________________________________________ - QColor Button::backgroundColor( void ) const + QColor Button::backgroundColor() const { auto d = qobject_cast( decoration() ); if( !d ) { diff --git a/kdecoration/breezedecoration.h b/kdecoration/breezedecoration.h --- a/kdecoration/breezedecoration.h +++ b/kdecoration/breezedecoration.h @@ -74,30 +74,30 @@ //@{ void setOpacity( qreal ); - qreal opacity( void ) const + qreal opacity() const { return m_opacity; } //@} //*@name colors //@{ - QColor titleBarColor( void ) const; - QColor outlineColor( void ) const; - QColor fontColor( void ) const; + QColor titleBarColor() const; + QColor outlineColor() const; + QColor fontColor() const; //@} //*@name maximization modes //@{ - inline bool isMaximized( void ) const; - inline bool isMaximizedHorizontally( void ) const; - inline bool isMaximizedVertically( void ) const; + inline bool isMaximized() const; + inline bool isMaximizedHorizontally() const; + inline bool isMaximizedVertically() const; - inline bool isLeftEdge( void ) const; - inline bool isRightEdge( void ) const; - inline bool isTopEdge( void ) const; - inline bool isBottomEdge( void ) const; + inline bool isLeftEdge() const; + inline bool isRightEdge() const; + inline bool isTopEdge() const; + inline bool isBottomEdge() const; - inline bool hideTitleBar( void ) const; + inline bool hideTitleBar() const; //@} public Q_SLOTS: @@ -115,25 +115,25 @@ private: //* return the rect in which caption will be drawn - QPair captionRect( void ) const; + QPair captionRect() const; void createButtons(); void paintTitleBar(QPainter *painter, const QRect &repaintRegion); void createShadow(); //*@name border size //@{ int borderSize(bool bottom = false) const; - inline bool hasBorders( void ) const; - inline bool hasNoBorders( void ) const; - inline bool hasNoSideBorders( void ) const; + inline bool hasBorders() const; + inline bool hasNoBorders() const; + inline bool hasNoSideBorders() const; //@} //*@name size grip //@{ - void createSizeGrip( void ); - void deleteSizeGrip( void ); - SizeGrip* sizeGrip( void ) const + void createSizeGrip(); + void deleteSizeGrip(); + SizeGrip* sizeGrip() const { return m_sizeGrip; } //@} @@ -153,46 +153,46 @@ }; - bool Decoration::hasBorders( void ) const + bool Decoration::hasBorders() const { if( m_internalSettings && m_internalSettings->mask() & BorderSize ) return m_internalSettings->borderSize() > InternalSettings::BorderNoSides; else return settings()->borderSize() > KDecoration2::BorderSize::NoSides; } - bool Decoration::hasNoBorders( void ) const + bool Decoration::hasNoBorders() const { if( m_internalSettings && m_internalSettings->mask() & BorderSize ) return m_internalSettings->borderSize() == InternalSettings::BorderNone; else return settings()->borderSize() == KDecoration2::BorderSize::None; } - bool Decoration::hasNoSideBorders( void ) const + bool Decoration::hasNoSideBorders() const { if( m_internalSettings && m_internalSettings->mask() & BorderSize ) return m_internalSettings->borderSize() == InternalSettings::BorderNoSides; else return settings()->borderSize() == KDecoration2::BorderSize::NoSides; } - bool Decoration::isMaximized( void ) const + bool Decoration::isMaximized() const { return client().data()->isMaximized() && !m_internalSettings->drawBorderOnMaximizedWindows(); } - bool Decoration::isMaximizedHorizontally( void ) const + bool Decoration::isMaximizedHorizontally() const { return client().data()->isMaximizedHorizontally() && !m_internalSettings->drawBorderOnMaximizedWindows(); } - bool Decoration::isMaximizedVertically( void ) const + bool Decoration::isMaximizedVertically() const { return client().data()->isMaximizedVertically() && !m_internalSettings->drawBorderOnMaximizedWindows(); } - bool Decoration::isLeftEdge( void ) const + bool Decoration::isLeftEdge() const { return (client().data()->isMaximizedHorizontally() || client().data()->adjacentScreenEdges().testFlag( Qt::LeftEdge ) ) && !m_internalSettings->drawBorderOnMaximizedWindows(); } - bool Decoration::isRightEdge( void ) const + bool Decoration::isRightEdge() const { return (client().data()->isMaximizedHorizontally() || client().data()->adjacentScreenEdges().testFlag( Qt::RightEdge ) ) && !m_internalSettings->drawBorderOnMaximizedWindows(); } - bool Decoration::isTopEdge( void ) const + bool Decoration::isTopEdge() const { return (client().data()->isMaximizedVertically() || client().data()->adjacentScreenEdges().testFlag( Qt::TopEdge ) ) && !m_internalSettings->drawBorderOnMaximizedWindows(); } - bool Decoration::isBottomEdge( void ) const + bool Decoration::isBottomEdge() const { return (client().data()->isMaximizedVertically() || client().data()->adjacentScreenEdges().testFlag( Qt::BottomEdge ) ) && !m_internalSettings->drawBorderOnMaximizedWindows(); } - bool Decoration::hideTitleBar( void ) const + bool Decoration::hideTitleBar() const { return m_internalSettings->hideTitleBar() && !client().data()->isShaded(); } } diff --git a/kdecoration/breezedecoration.cpp b/kdecoration/breezedecoration.cpp --- a/kdecoration/breezedecoration.cpp +++ b/kdecoration/breezedecoration.cpp @@ -724,7 +724,7 @@ } //_________________________________________________________________ - void Decoration::createSizeGrip( void ) + void Decoration::createSizeGrip() { // do nothing if size grip already exist @@ -749,7 +749,7 @@ } //_________________________________________________________________ - void Decoration::deleteSizeGrip( void ) + void Decoration::deleteSizeGrip() { if( m_sizeGrip ) { diff --git a/kdecoration/breezesettingsprovider.h b/kdecoration/breezesettingsprovider.h --- a/kdecoration/breezesettingsprovider.h +++ b/kdecoration/breezesettingsprovider.h @@ -50,12 +50,12 @@ public Q_SLOTS: //* reconfigure - void reconfigure( void ); + void reconfigure(); private: //* contructor - SettingsProvider( void ); + SettingsProvider(); //* default configuration InternalSettingsPtr m_defaultSettings; diff --git a/kdecoration/breezesettingsprovider.cpp b/kdecoration/breezesettingsprovider.cpp --- a/kdecoration/breezesettingsprovider.cpp +++ b/kdecoration/breezesettingsprovider.cpp @@ -51,7 +51,7 @@ } //__________________________________________________________________ - void SettingsProvider::reconfigure( void ) + void SettingsProvider::reconfigure() { if( !m_defaultSettings ) { diff --git a/kdecoration/breezesizegrip.h b/kdecoration/breezesizegrip.h --- a/kdecoration/breezesizegrip.h +++ b/kdecoration/breezesizegrip.h @@ -47,18 +47,18 @@ explicit SizeGrip( Decoration* ); //* constructor - virtual ~SizeGrip( void ); + virtual ~SizeGrip(); protected Q_SLOTS: //* update background color - void updateActiveState( void ); + void updateActiveState(); //* update position - void updatePosition( void ); + void updatePosition(); //* embed into parent widget - void embed( void ); + void embed(); protected: diff --git a/kdecoration/breezesizegrip.cpp b/kdecoration/breezesizegrip.cpp --- a/kdecoration/breezesizegrip.cpp +++ b/kdecoration/breezesizegrip.cpp @@ -75,11 +75,11 @@ } //_____________________________________________ - SizeGrip::~SizeGrip( void ) + SizeGrip::~SizeGrip() {} //_____________________________________________ - void SizeGrip::updateActiveState( void ) + void SizeGrip::updateActiveState() { #if BREEZE_HAVE_X11 if( QX11Info::isPlatformX11() ) @@ -95,7 +95,7 @@ } //_____________________________________________ - void SizeGrip::embed( void ) + void SizeGrip::embed() { #if BREEZE_HAVE_X11 @@ -190,7 +190,7 @@ } //_______________________________________________________________________________ - void SizeGrip::updatePosition( void ) + void SizeGrip::updatePosition() { #if BREEZE_HAVE_X11 diff --git a/kdecoration/config/breezeconfigwidget.h b/kdecoration/config/breezeconfigwidget.h --- a/kdecoration/config/breezeconfigwidget.h +++ b/kdecoration/config/breezeconfigwidget.h @@ -51,16 +51,16 @@ explicit ConfigWidget( QWidget*, const QVariantList& ); //* destructor - virtual ~ConfigWidget( void ) = default; + virtual ~ConfigWidget() = default; //* default void defaults() override; //* load configuration - void load( void ) override; + void load() override; //* save configuration - void save( void ) override; + void save() override; protected Q_SLOTS: diff --git a/kdecoration/config/breezeconfigwidget.cpp b/kdecoration/config/breezeconfigwidget.cpp --- a/kdecoration/config/breezeconfigwidget.cpp +++ b/kdecoration/config/breezeconfigwidget.cpp @@ -69,7 +69,7 @@ } //_________________________________________________________ - void ConfigWidget::load( void ) + void ConfigWidget::load() { // create internal settings and load from rc files @@ -103,7 +103,7 @@ } //_________________________________________________________ - void ConfigWidget::save( void ) + void ConfigWidget::save() { // create internal settings and load from rc files @@ -151,7 +151,7 @@ } //_________________________________________________________ - void ConfigWidget::defaults( void ) + void ConfigWidget::defaults() { // create internal settings and load from rc files @@ -175,7 +175,7 @@ } //_______________________________________________ - void ConfigWidget::updateChanged( void ) + void ConfigWidget::updateChanged() { // check configuration diff --git a/kdecoration/config/breezedetectwidget.h b/kdecoration/config/breezedetectwidget.h --- a/kdecoration/config/breezedetectwidget.h +++ b/kdecoration/config/breezedetectwidget.h @@ -92,7 +92,7 @@ WId findWindow(); //* execute - void executeDialog( void ); + void executeDialog(); //* ui Ui::BreezeDetectWidget m_ui; diff --git a/kdecoration/config/breezeexceptiondialog.h b/kdecoration/config/breezeexceptiondialog.h --- a/kdecoration/config/breezeexceptiondialog.h +++ b/kdecoration/config/breezeexceptiondialog.h @@ -48,17 +48,17 @@ explicit ExceptionDialog( QWidget* parent ); //* destructor - virtual ~ExceptionDialog( void ) + virtual ~ExceptionDialog() {} //* set exception void setException( InternalSettingsPtr ); //* save exception - void save( void ); + void save(); //* true if changed - virtual bool isChanged( void ) const + virtual bool isChanged() const { return m_changed; } Q_SIGNALS: @@ -83,7 +83,7 @@ private Q_SLOTS: //* select window properties from grabbed pointers - void selectWindowProperties( void ); + void selectWindowProperties(); //* read properties of selected window void readWindowProperties( bool ); diff --git a/kdecoration/config/breezeexceptiondialog.cpp b/kdecoration/config/breezeexceptiondialog.cpp --- a/kdecoration/config/breezeexceptiondialog.cpp +++ b/kdecoration/config/breezeexceptiondialog.cpp @@ -89,7 +89,7 @@ } //___________________________________________ - void ExceptionDialog::save( void ) + void ExceptionDialog::save() { m_exception->setExceptionType( m_ui.exceptionType->currentIndex() ); m_exception->setExceptionPattern( m_ui.exceptionEditor->text() ); @@ -108,7 +108,7 @@ } //___________________________________________ - void ExceptionDialog::updateChanged( void ) + void ExceptionDialog::updateChanged() { bool modified( false ); if( m_exception->exceptionType() != m_ui.exceptionType->currentIndex() ) modified = true; @@ -133,7 +133,7 @@ } //___________________________________________ - void ExceptionDialog::selectWindowProperties( void ) + void ExceptionDialog::selectWindowProperties() { // create widget diff --git a/kdecoration/config/breezeexceptionlistwidget.h b/kdecoration/config/breezeexceptionlistwidget.h --- a/kdecoration/config/breezeexceptionlistwidget.h +++ b/kdecoration/config/breezeexceptionlistwidget.h @@ -47,10 +47,10 @@ void setExceptions( const InternalSettingsList& ); //* get exceptions - InternalSettingsList exceptions( void ); + InternalSettingsList exceptions(); //* true if changed - virtual bool isChanged( void ) const + virtual bool isChanged() const { return m_changed; } Q_SIGNALS: @@ -71,30 +71,30 @@ protected Q_SLOTS: //* update button states - virtual void updateButtons( void ); + virtual void updateButtons(); //* add - virtual void add( void ); + virtual void add(); //* edit - virtual void edit( void ); + virtual void edit(); //* remove - virtual void remove( void ); + virtual void remove(); //* toggle virtual void toggle( const QModelIndex& ); //* move up - virtual void up( void ); + virtual void up(); //* move down - virtual void down( void ); + virtual void down(); protected: //* resize columns - void resizeColumns( void ) const; + void resizeColumns() const; //* check exception bool checkException( InternalSettingsPtr ); diff --git a/kdecoration/config/breezeexceptionlistwidget.cpp b/kdecoration/config/breezeexceptionlistwidget.cpp --- a/kdecoration/config/breezeexceptionlistwidget.cpp +++ b/kdecoration/config/breezeexceptionlistwidget.cpp @@ -83,14 +83,14 @@ } //__________________________________________________________ - InternalSettingsList ExceptionListWidget::exceptions( void ) + InternalSettingsList ExceptionListWidget::exceptions() { return model().get(); setChanged( false ); } //__________________________________________________________ - void ExceptionListWidget::updateButtons( void ) + void ExceptionListWidget::updateButtons() { bool hasSelection( !m_ui.exceptionListView->selectionModel()->selectedRows().empty() ); @@ -104,7 +104,7 @@ //_______________________________________________________ - void ExceptionListWidget::add( void ) + void ExceptionListWidget::add() { @@ -147,7 +147,7 @@ } //_______________________________________________________ - void ExceptionListWidget::edit( void ) + void ExceptionListWidget::edit() { // retrieve selection @@ -186,7 +186,7 @@ } //_______________________________________________________ - void ExceptionListWidget::remove( void ) + void ExceptionListWidget::remove() { // confirmation dialog @@ -224,7 +224,7 @@ } //_______________________________________________________ - void ExceptionListWidget::up( void ) + void ExceptionListWidget::up() { InternalSettingsList selection( model().get( m_ui.exceptionListView->selectionModel()->selectedRows() ) ); @@ -270,7 +270,7 @@ } //_______________________________________________________ - void ExceptionListWidget::down( void ) + void ExceptionListWidget::down() { InternalSettingsList selection( model().get( m_ui.exceptionListView->selectionModel()->selectedRows() ) ); @@ -322,7 +322,7 @@ } //_______________________________________________________ - void ExceptionListWidget::resizeColumns( void ) const + void ExceptionListWidget::resizeColumns() const { m_ui.exceptionListView->resizeColumnToContents( ExceptionModel::ColumnEnabled ); m_ui.exceptionListView->resizeColumnToContents( ExceptionModel::ColumnType ); diff --git a/kdecoration/config/breezeitemmodel.h b/kdecoration/config/breezeitemmodel.h --- a/kdecoration/config/breezeitemmodel.h +++ b/kdecoration/config/breezeitemmodel.h @@ -51,26 +51,26 @@ //@{ //* sort - virtual void sort( void ) + virtual void sort() { sort( sortColumn(), sortOrder() ); } //* sort void sort( int column, Qt::SortOrder order = Qt::AscendingOrder ) override; //* current sorting column - const int& sortColumn( void ) const + const int& sortColumn() const { return m_sortColumn; } //* current sort order - const Qt::SortOrder& sortOrder( void ) const + const Qt::SortOrder& sortOrder() const { return m_sortOrder; } //@} protected: //* this sort columns without calling the layout changed callbacks - void privateSort( void ) + void privateSort() { privateSort( m_sortColumn, m_sortOrder ); } //* private sort, with no signals emmitted diff --git a/kdecoration/config/breezelistmodel.h b/kdecoration/config/breezelistmodel.h --- a/kdecoration/config/breezelistmodel.h +++ b/kdecoration/config/breezelistmodel.h @@ -105,7 +105,7 @@ //@{ //! clear internal list selected items - virtual void clearSelectedIndexes( void ) + virtual void clearSelectedIndexes() { _selection.clear(); } //! store index internal selection state @@ -116,7 +116,7 @@ } //! get list of internal selected items - virtual QModelIndexList selectedIndexes( void ) const + virtual QModelIndexList selectedIndexes() const { QModelIndexList out; @@ -228,7 +228,7 @@ } //! clear - virtual void clear( void ) + virtual void clear() { set( List() ); } //! update values from list diff --git a/kstyle/breezeblurhelper.h b/kstyle/breezeblurhelper.h --- a/kstyle/breezeblurhelper.h +++ b/kstyle/breezeblurhelper.h @@ -53,7 +53,7 @@ BlurHelper( QObject* ); //! destructor - virtual ~BlurHelper( void ) + virtual ~BlurHelper() {} //! register widget