Commit d42633e5 authored by Kurt Hindenburg's avatar Kurt Hindenburg

add explicit to constructors with 1 parameter

parent e0862c60
......@@ -47,7 +47,7 @@ class ColorSchemeWallpaper : public QSharedData
public:
typedef KSharedPtr<ColorSchemeWallpaper> Ptr;
ColorSchemeWallpaper(const QString& path);
explicit ColorSchemeWallpaper(const QString& path);
~ColorSchemeWallpaper();
void load();
......
......@@ -53,7 +53,7 @@ class ColorSchemeEditor : public QWidget
public:
/** Constructs a new color scheme editor with the specified parent. */
ColorSchemeEditor(QWidget* parent = 0);
explicit ColorSchemeEditor(QWidget* parent = 0);
virtual ~ColorSchemeEditor();
/** Initializes the dialog with the properties of the specified color scheme. */
......
......@@ -51,7 +51,7 @@ public:
* Constructs a new reader which reads from the specified device.
* The device should be open in read-only mode.
*/
KDE3ColorSchemeReader(QIODevice* device);
explicit KDE3ColorSchemeReader(QIODevice* device);
/**
* Reads and parses the contents of the .schema file from the input
......
......@@ -50,7 +50,7 @@ class CopyInputDialog : public KDialog
Q_OBJECT
public:
CopyInputDialog(QWidget* parent = 0);
explicit CopyInputDialog(QWidget* parent = 0);
~CopyInputDialog();
/**
* Sets the 'source' session whose input will be copied to
......@@ -95,7 +95,7 @@ class CheckableSessionModel : public SessionListModel
Q_OBJECT
public:
CheckableSessionModel(QObject* parent);
explicit CheckableSessionModel(QObject* parent);
void setCheckColumn(int column);
int checkColumn() const;
......
......@@ -63,7 +63,7 @@ class KONSOLEPRIVATE_EXPORT EditProfileDialog : public KDialog
public:
/** Constructs a new dialog with the specified parent. */
EditProfileDialog(QWidget* parent = 0);
explicit EditProfileDialog(QWidget* parent = 0);
virtual ~EditProfileDialog();
/**
......@@ -254,7 +254,7 @@ class ColorSchemeViewDelegate : public QAbstractItemDelegate
Q_OBJECT
public:
ColorSchemeViewDelegate(QObject* parent = 0);
explicit ColorSchemeViewDelegate(QObject* parent = 0);
// reimplemented
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option,
......
......@@ -287,7 +287,7 @@ class FilterObject : public QObject
{
Q_OBJECT
public:
FilterObject(Filter::HotSpot* filter) : _filter(filter) {}
explicit FilterObject(Filter::HotSpot* filter) : _filter(filter) {}
private slots:
void activated();
private:
......
......@@ -85,7 +85,7 @@ class HistoryType;
class HistoryScroll
{
public:
HistoryScroll(HistoryType*);
explicit HistoryScroll(HistoryType*);
virtual ~HistoryScroll();
virtual bool hasScroll();
......@@ -127,7 +127,7 @@ protected:
class HistoryScrollFile : public HistoryScroll
{
public:
HistoryScrollFile(const QString& logFileName);
explicit HistoryScrollFile(const QString& logFileName);
virtual ~HistoryScrollFile();
virtual int getLines();
......@@ -289,7 +289,7 @@ class CompactHistoryScroll : public HistoryScroll
typedef QList<CompactHistoryLine*> HistoryArray;
public:
CompactHistoryScroll(unsigned int maxNbLines = 1000);
explicit CompactHistoryScroll(unsigned int maxNbLines = 1000);
virtual ~CompactHistoryScroll();
virtual int getLines();
......@@ -371,7 +371,7 @@ protected:
class CompactHistoryType : public HistoryType
{
public:
CompactHistoryType(unsigned int size);
explicit CompactHistoryType(unsigned int size);
virtual bool isEnabled() const;
virtual int maximumLineCount() const;
......
......@@ -41,7 +41,7 @@ public:
/**
* Construct a new history size dialog.
*/
HistorySizeDialog(QWidget* parent);
explicit HistorySizeDialog(QWidget* parent);
/** Specifies the type of history scroll */
enum HistoryMode {
......
......@@ -54,7 +54,7 @@ class KeyBindingEditor : public QWidget
public:
/** Constructs a new key bindings editor with the specified parent. */
KeyBindingEditor(QWidget* parent = 0);
explicit KeyBindingEditor(QWidget* parent = 0);
virtual ~KeyBindingEditor();
/**
......
......@@ -257,7 +257,7 @@ public:
};
/** Constructs a new keyboard translator with the given @p name */
KeyboardTranslator(const QString& name);
explicit KeyboardTranslator(const QString& name);
//KeyboardTranslator(const KeyboardTranslator& other);
......@@ -351,7 +351,7 @@ class KeyboardTranslatorReader
{
public:
/** Constructs a new reader which parses the given @p source */
KeyboardTranslatorReader(QIODevice* source);
explicit KeyboardTranslatorReader(QIODevice* source);
/**
* Returns the description text.
......@@ -419,7 +419,7 @@ public:
* Constructs a new writer which saves data into @p destination.
* The caller is responsible for closing the device when writing is complete.
*/
KeyboardTranslatorWriter(QIODevice* destination);
explicit KeyboardTranslatorWriter(QIODevice* destination);
~KeyboardTranslatorWriter();
/**
......
......@@ -59,7 +59,7 @@ class KONSOLEPRIVATE_EXPORT ManageProfilesDialog : public KDialog
public:
/** Constructs a new profile type with the specified parent. */
ManageProfilesDialog(QWidget* parent = 0);
explicit ManageProfilesDialog(QWidget* parent = 0);
virtual ~ManageProfilesDialog();
/**
......@@ -130,7 +130,7 @@ public:
class FavoriteItemDelegate : public QStyledItemDelegate
{
public:
FavoriteItemDelegate(QObject* parent = 0);
explicit FavoriteItemDelegate(QObject* parent = 0);
virtual bool editorEvent(QEvent* event, QAbstractItemModel* model,
const QStyleOptionViewItem& option, const QModelIndex& index);
......@@ -143,7 +143,7 @@ class ShortcutItemDelegate : public QStyledItemDelegate
Q_OBJECT
public:
ShortcutItemDelegate(QObject* parent = 0);
explicit ShortcutItemDelegate(QObject* parent = 0);
virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const;
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option,
......
......@@ -408,7 +408,7 @@ public:
*
* @param process A ProcessInfo instance for a SSH process.
*/
SSHProcessInfo(const ProcessInfo& process);
explicit SSHProcessInfo(const ProcessInfo& process);
/**
* Returns the user name which the user initially logged into on
......
......@@ -36,7 +36,7 @@ class RenameTabsDialog : public KDialog
Q_OBJECT
public:
RenameTabsDialog(QWidget* parent = 0);
explicit RenameTabsDialog(QWidget* parent = 0);
~RenameTabsDialog();
QString tabTitleText() const;
QString remoteTabTitleText() const;
......
......@@ -64,7 +64,7 @@ public:
* to notify the window when the associated screen has changed and synchronize selection updates
* between all views on a session.
*/
ScreenWindow(QObject* parent = 0);
explicit ScreenWindow(QObject* parent = 0);
virtual ~ScreenWindow();
/** Sets the screen which this window looks onto */
......
......@@ -752,7 +752,7 @@ class SessionGroup : public QObject
public:
/** Constructs an empty session group. */
SessionGroup(QObject* parent);
explicit SessionGroup(QObject* parent);
/** Destroys the session group and removes all connections between master and slave sessions. */
~SessionGroup();
......
......@@ -340,7 +340,7 @@ class SessionTask : public QObject
Q_OBJECT
public:
SessionTask(QObject* parent = 0);
explicit SessionTask(QObject* parent = 0);
/**
* Sets whether the task automatically deletes itself when the task has been finished.
......@@ -392,7 +392,7 @@ class SaveHistoryTask : public SessionTask
public:
/** Constructs a new task to save session output to URLs */
SaveHistoryTask(QObject* parent = 0);
explicit SaveHistoryTask(QObject* parent = 0);
virtual ~SaveHistoryTask();
/**
......
......@@ -384,7 +384,7 @@ template <class T>
class PopStackOnExit
{
public:
PopStackOnExit(QStack<T>& stack) : _stack(stack) , _count(stack.count()) {}
explicit PopStackOnExit(QStack<T>& stack) : _stack(stack) , _count(stack.count()) {}
~PopStackOnExit() {
while (_stack.count() > _count)
_stack.pop();
......@@ -407,7 +407,7 @@ class SessionListModel : public QAbstractListModel
Q_OBJECT
public:
SessionListModel(QObject* parent = 0);
explicit SessionListModel(QObject* parent = 0);
/**
* Sets the list of sessions displayed in the model.
......
......@@ -58,7 +58,7 @@ public:
*
* @param aCommand The command line to parse.
*/
ShellCommand(const QString& aCommand);
explicit ShellCommand(const QString& aCommand);
/**
* Constructs a ShellCommand with the specified @p aCommand and @p aArguments.
*/
......
......@@ -35,7 +35,7 @@ class TabTitleFormatButton : public QPushButton
Q_OBJECT
public:
TabTitleFormatButton(QWidget* parent);
explicit TabTitleFormatButton(QWidget* parent);
~TabTitleFormatButton();
void setContext(Session::TabTitleContext context);
......
......@@ -67,7 +67,7 @@ class KONSOLEPRIVATE_EXPORT TerminalDisplay : public QWidget
public:
/** Constructs a new terminal display widget with the specified parent. */
TerminalDisplay(QWidget* parent = 0);
explicit TerminalDisplay(QWidget* parent = 0);
virtual ~TerminalDisplay();
/** Returns the terminal color palette used by the display. */
......@@ -868,7 +868,7 @@ class AutoScrollHandler : public QObject
Q_OBJECT
public:
AutoScrollHandler(QWidget* parent);
explicit AutoScrollHandler(QWidget* parent);
protected:
virtual void timerEvent(QTimerEvent* event);
virtual bool eventFilter(QObject* watched, QEvent* event);
......
......@@ -454,7 +454,7 @@ private:
class StackedViewContainer : public ViewContainer
{
public:
StackedViewContainer(QObject* parent);
explicit StackedViewContainer(QObject* parent);
virtual ~StackedViewContainer();
virtual QWidget* containerWidget() const;
......
......@@ -47,7 +47,7 @@ class KONSOLEPRIVATE_EXPORT ViewProperties : public QObject
Q_OBJECT
public:
ViewProperties(QObject* parent);
explicit ViewProperties(QObject* parent);
virtual ~ViewProperties();
/** Returns the icon associated with a view */
......
......@@ -50,7 +50,7 @@ class ViewSplitter : public QSplitter
Q_OBJECT
public:
ViewSplitter(QWidget* parent = 0);
explicit ViewSplitter(QWidget* parent = 0);
/**
* Locates the child ViewSplitter widget which currently has the focus
......
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