WaE: deletion of pointer to incomplete type; no destructor called
Move the struct OSQLParser_Data definition to the sqlparse.hxx header. A somewhat ugly workaround for warning C4150: deletion of pointer to incomplete type 'connectivity::OSQLParser_Data'; no destructor called.
This commit is contained in:
@@ -44,6 +44,7 @@
|
|||||||
#include <com/sun/star/i18n/XLocaleData.hpp>
|
#include <com/sun/star/i18n/XLocaleData.hpp>
|
||||||
#include "connectivity/IParseContext.hxx"
|
#include "connectivity/IParseContext.hxx"
|
||||||
#include "connectivity/dbtoolsdllapi.hxx"
|
#include "connectivity/dbtoolsdllapi.hxx"
|
||||||
|
#include "connectivity/sqlerror.hxx"
|
||||||
#include <salhelper/singletonref.hxx>
|
#include <salhelper/singletonref.hxx>
|
||||||
#include <osl/mutex.hxx>
|
#include <osl/mutex.hxx>
|
||||||
|
|
||||||
@@ -127,7 +128,17 @@ namespace connectivity
|
|||||||
//==========================================================================
|
//==========================================================================
|
||||||
//= OSQLParser
|
//= OSQLParser
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
struct OSQLParser_Data;
|
struct OSQLParser_Data
|
||||||
|
{
|
||||||
|
::com::sun::star::lang::Locale aLocale;
|
||||||
|
::connectivity::SQLError aErrors;
|
||||||
|
|
||||||
|
OSQLParser_Data( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xServiceFactory )
|
||||||
|
:aErrors( _xServiceFactory )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/** Parser for SQL92
|
/** Parser for SQL92
|
||||||
*/
|
*/
|
||||||
class OOO_DLLPUBLIC_DBTOOLS OSQLParser
|
class OOO_DLLPUBLIC_DBTOOLS OSQLParser
|
||||||
|
@@ -68,7 +68,6 @@
|
|||||||
#include <comphelper/stl_types.hxx>
|
#include <comphelper/stl_types.hxx>
|
||||||
#include "connectivity/dbtools.hxx"
|
#include "connectivity/dbtools.hxx"
|
||||||
#include "connectivity/dbmetadata.hxx"
|
#include "connectivity/dbmetadata.hxx"
|
||||||
#include "connectivity/sqlerror.hxx"
|
|
||||||
#include <tools/diagnose_ex.h>
|
#include <tools/diagnose_ex.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
@@ -153,18 +152,6 @@ namespace
|
|||||||
namespace connectivity
|
namespace connectivity
|
||||||
{
|
{
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
struct OSQLParser_Data
|
|
||||||
{
|
|
||||||
::com::sun::star::lang::Locale aLocale;
|
|
||||||
::connectivity::SQLError aErrors;
|
|
||||||
|
|
||||||
OSQLParser_Data( const Reference< XMultiServiceFactory >& _xServiceFactory )
|
|
||||||
:aErrors( _xServiceFactory )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
//= SQLParseNodeParameter
|
//= SQLParseNodeParameter
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
Reference in New Issue
Block a user