summaryrefslogtreecommitdiff
path: root/navit/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'navit/graphics')
-rw-r--r--navit/graphics/qt5/QNavitQuick.cpp1
-rw-r--r--navit/graphics/qt5/QNavitWidget.cpp1
2 files changed, 0 insertions, 2 deletions
diff --git a/navit/graphics/qt5/QNavitQuick.cpp b/navit/graphics/qt5/QNavitQuick.cpp
index 966072852..ec734c7de 100644
--- a/navit/graphics/qt5/QNavitQuick.cpp
+++ b/navit/graphics/qt5/QNavitQuick.cpp
@@ -167,7 +167,6 @@ void QNavitQuick::keyReleaseEvent(QKeyEvent* event) {
void QNavitQuick::geometryChanged(const QRectF& newGeometry, const QRectF& oldGeometry) {
dbg(lvl_debug, "enter");
QQuickPaintedItem::geometryChanged(newGeometry, oldGeometry);
- QPainter* painter = NULL;
if (graphics_priv == NULL) {
dbg(lvl_debug, "Context not set, aborting");
return;
diff --git a/navit/graphics/qt5/QNavitWidget.cpp b/navit/graphics/qt5/QNavitWidget.cpp
index 43c04d87f..74dddf1db 100644
--- a/navit/graphics/qt5/QNavitWidget.cpp
+++ b/navit/graphics/qt5/QNavitWidget.cpp
@@ -95,7 +95,6 @@ void QNavitWidget::paintEvent(QPaintEvent* event) {
}
void QNavitWidget::resizeEvent(QResizeEvent* event) {
- QPainter* painter = NULL;
if (graphics_priv->pixmap != NULL) {
if((width() != graphics_priv->pixmap->width()) || (height() != graphics_priv->pixmap->height())) {
delete graphics_priv->pixmap;