summaryrefslogtreecommitdiff
path: root/src/imports
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@theqtcompany.com>2016-02-15 12:09:01 +0100
committerShawn Rutledge <shawn.rutledge@theqtcompany.com>2016-03-02 08:55:44 +0000
commit53112ac6d97a61125cc3e45f0b8a2f0439df23ca (patch)
tree4a5668713efa2bf46c531db35298e1ebbbe825a8 /src/imports
parent91abe5a2abbb6a19dc37e8d2047d44473c37d6cb (diff)
downloadqtwayland-53112ac6d97a61125cc3e45f0b8a2f0439df23ca.tar.gz
Fix potential memory corruption
Don't use references to temporary objects. Change-Id: I786c90273ac835309fe5ac4ecc3372de185e490e Reviewed-by: Erik Larsson <erik@ortogonal.com> Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> Reviewed-by: Johan Helsing <johan.helsing@theqtcompany.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/compositor/qwaylandquickcompositorplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/compositor/qwaylandquickcompositorplugin.cpp b/src/imports/compositor/qwaylandquickcompositorplugin.cpp
index 0f609b0f..6b113717 100644
--- a/src/imports/compositor/qwaylandquickcompositorplugin.cpp
+++ b/src/imports/compositor/qwaylandquickcompositorplugin.cpp
@@ -77,8 +77,8 @@ public:
}
private:
bool m_useResource;
- const QDir &m_qmlDir;
- const QString &m_qrcPath;
+ const QDir m_qmlDir;
+ const QString m_qrcPath;
};