summaryrefslogtreecommitdiff
path: root/converters/pyzy/patches/patch-src_Database.h
blob: 186aadb1c2aa38e21f354b5a9d98c47e0889e204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-src_Database.h,v 1.1 2013/11/22 15:43:05 dholland Exp $

Work around C++ build error with gcc 4.5.

--- src/Database.h.orig	2012-07-13 02:46:33.000000000 +0000
+++ src/Database.h
@@ -79,7 +79,7 @@ public:
     static void finalize (void);
     static Database & instance (void)
     {
-        if (m_instance == NULL) {
+        if (!m_instance) {
             g_error ("Error: Please call InputContext::init () !");
         }
         return *m_instance;