Commit a8c3dd0a authored by Kurt Hindenburg's avatar Kurt Hindenburg

use better/non-shadow named member name

parent 4ba5682d
......@@ -27,13 +27,13 @@ QString ViewProperties::_mimeType = "application/x-konsole-view-id";
ViewProperties::ViewProperties(QObject* parent)
: QObject(parent)
, _id(0)
, _identifier(0)
{
}
ViewProperties::~ViewProperties()
{
_viewProperties.remove(_id);
_viewProperties.remove(_identifier);
}
ViewProperties* ViewProperties::propertiesById(int id)
{
......@@ -75,10 +75,10 @@ void ViewProperties::setIcon(const QIcon& icon)
}
void ViewProperties::setIdentifier(int id)
{
if (_viewProperties.contains(_id))
_viewProperties.remove(_id);
if (_viewProperties.contains(_identifier))
_viewProperties.remove(_identifier);
_id = id;
_identifier = id;
_viewProperties.insert(id, this);
}
......@@ -92,6 +92,6 @@ QIcon ViewProperties::icon() const
}
int ViewProperties::identifier() const
{
return _id;
return _identifier;
}
......@@ -145,7 +145,7 @@ protected:
private:
QIcon _icon;
QString _title;
int _id;
int _identifier;
static QHash<int, ViewProperties*> _viewProperties;
static QString _mimeType;
......
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