mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
fixed dangerous usage of a const reference as member
svn path=/trunk/KDE/kdebase/apps/; revision=654781
This commit is contained in:
parent
188132117e
commit
c0e78a46d9
|
@ -29,20 +29,19 @@
|
|||
|
||||
#include <assert.h>
|
||||
#include <klocale.h>
|
||||
#include <kurl.h>
|
||||
#include <kio/jobclasses.h>
|
||||
|
||||
ViewPropsProgressInfo::ViewPropsProgressInfo(QWidget* parent,
|
||||
const KUrl& dir,
|
||||
const ViewProperties& viewProps) :
|
||||
KDialog(parent),
|
||||
m_dir(dir),
|
||||
m_viewProps(0),
|
||||
m_label(0),
|
||||
m_progressBar(0),
|
||||
m_dirSizeJob(0),
|
||||
m_applyViewPropsJob(0),
|
||||
m_timer(0)
|
||||
const KUrl& dir,
|
||||
const ViewProperties& viewProps) :
|
||||
KDialog(parent),
|
||||
m_dir(dir),
|
||||
m_viewProps(0),
|
||||
m_label(0),
|
||||
m_progressBar(0),
|
||||
m_dirSizeJob(0),
|
||||
m_applyViewPropsJob(0),
|
||||
m_timer(0)
|
||||
{
|
||||
const QSize minSize = minimumSize();
|
||||
setMinimumSize(QSize(320, minSize.height()));
|
||||
|
|
|
@ -22,10 +22,10 @@
|
|||
|
||||
#include <kdialog.h>
|
||||
#include <kio/directorysizejob.h>
|
||||
#include <kurl.h>
|
||||
|
||||
class ApplyViewPropsJob;
|
||||
class KJob;
|
||||
class KUrl;
|
||||
class QLabel;
|
||||
class QProgressBar;
|
||||
class QTimer;
|
||||
|
@ -65,7 +65,7 @@ private slots:
|
|||
void cancelApplying();
|
||||
|
||||
private:
|
||||
const KUrl& m_dir;
|
||||
KUrl m_dir;
|
||||
ViewProperties* m_viewProps;
|
||||
|
||||
QLabel* m_label;
|
||||
|
|
Loading…
Reference in a new issue