Diff of /qt/ScintillaEditBase/PlatQt.cpp [313fe0] .. [c37c20] Maximize Restore

  Switch to unified view

a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp
...
...
1087
        lib = 0;
1087
        lib = 0;
1088
    }
1088
    }
1089
1089
1090
    virtual Function FindFunction(const char *name) {
1090
    virtual Function FindFunction(const char *name) {
1091
        if (lib) {
1091
        if (lib) {
1092
          void *fnAddress = lib->resolve(name);
1092
          // C++ standard doesn't like casts betwen function pointers and void pointers so use a union
1093
          return static_cast<Function>(fnAddress);
1093
          union {
1094
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
1095
              QFunctionPointer fp;
1096
#else
1097
              void *fp;
1098
#endif
1099
              Function f;
1100
          } fnConv;
1101
          fnConv.fp = lib->resolve(name);
1102
          return fnConv.f;
1094
        }
1103
        }
1095
        return NULL;
1104
        return NULL;
1096
    }
1105
    }
1097
1106
1098
    virtual bool IsValid() {
1107
    virtual bool IsValid() {