diff options
| author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-02-27 23:07:58 +0000 |
|---|---|---|
| committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2014-02-27 23:07:58 +0000 |
| commit | f07607226c5b7427ce1147f19389665ceb344733 (patch) | |
| tree | 9a2054da05e0b7e53d731f0717bfdaee39200564 /navit/graphics/qt_qpainter/RenderArea.cpp | |
| parent | c8a49b8d530c1eef7135975995c1e7266820fc8b (diff) | |
| download | navit-f07607226c5b7427ce1147f19389665ceb344733.tar.gz | |
Enable -Wundef, fix warnings by replacing #if -> #ifdef.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5749 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics/qt_qpainter/RenderArea.cpp')
| -rw-r--r-- | navit/graphics/qt_qpainter/RenderArea.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/graphics/qt_qpainter/RenderArea.cpp b/navit/graphics/qt_qpainter/RenderArea.cpp index 291786f3d..96515f924 100644 --- a/navit/graphics/qt_qpainter/RenderArea.cpp +++ b/navit/graphics/qt_qpainter/RenderArea.cpp @@ -67,7 +67,7 @@ RenderArea::RenderArea(struct graphics_priv *priv, QT_QPAINTER_RENDERAREA_PARENT #endif is_overlay=overlay; gra=priv; -#if QT_QPAINTER_USE_EVENT_QT +#ifdef QT_QPAINTER_USE_EVENT_QT timer_type=g_hash_table_new(NULL, NULL); timer_callback=g_hash_table_new(NULL, NULL); watches=g_hash_table_new(NULL, NULL); @@ -303,7 +303,7 @@ void RenderArea::keyPressEvent(QKeyEvent *event) void RenderArea::watchEvent(int fd) { -#if QT_QPAINTER_USE_EVENT_QT +#ifdef QT_QPAINTER_USE_EVENT_QT struct event_watch *ev=(struct event_watch *)g_hash_table_lookup(watches, (void *)fd); dbg(1,"fd=%d ev=%p cb=%p\n", fd, ev, ev->cb); callback_call_0(ev->cb); |
