Commit 38c9c0d2 authored by Olivier Bertrand's avatar Olivier Bertrand

Fix compile warnings and errors for nullptr. Modified /storage/connect/tabjmg (cpp and h)

parent f590296c
...@@ -27,10 +27,20 @@ ...@@ -27,10 +27,20 @@
#include "mycat.h" // for FNC_COL #include "mycat.h" // for FNC_COL
#include "filter.h" #include "filter.h"
#define nullptr 0
PQRYRES MGOColumns(PGLOBAL g, PCSZ db, PCSZ uri, PTOS topt, bool info); PQRYRES MGOColumns(PGLOBAL g, PCSZ db, PCSZ uri, PTOS topt, bool info);
/* -------------------------- Class JMGDISC -------------------------- */ /* -------------------------- Class JMGDISC -------------------------- */
/***********************************************************************/
/* Constructor */
/***********************************************************************/
JMGDISC::JMGDISC(PGLOBAL g, int *lg) : MGODISC(g, lg)
{
drv = "Java"; Jcp = NULL; columnid = nullptr;
} // end of JMGDISC constructor
/***********************************************************************/ /***********************************************************************/
/* Initialyze. */ /* Initialyze. */
/***********************************************************************/ /***********************************************************************/
......
/**************** tabjmg H Declares Source Code File (.H) **************/ /**************** tabjmg H Declares Source Code File (.H) **************/
/* Name: tabjmg.h Version 1.0 */ /* Name: tabjmg.h Version 1.1 */
/* */ /* */
/* (C) Copyright to the author Olivier BERTRAND 2017 */ /* (C) Copyright to the author Olivier BERTRAND 2017 */
/* */ /* */
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
class JMGDISC : public MGODISC { class JMGDISC : public MGODISC {
public: public:
// Constructor // Constructor
JMGDISC(PGLOBAL g, int *lg) : MGODISC(g, lg) JMGDISC(PGLOBAL g, int *lg);
{ drv = "Java"; Jcp = NULL; columnid = nullptr; }
// Methods // Methods
virtual bool Init(PGLOBAL g); virtual bool Init(PGLOBAL g);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment