Kaydet (Commit) d376c09f authored tarafından Jens Carl's avatar Jens Carl Kaydeden (comit) Stephan Bergmann

tdf#43157 Clean up OSL_VERIFY (replace with SAL_WARN)

Replace OSL_VERIFY with if-statement and SAL_WARN.

Change-Id: Ib5459a365231514efa0e8a33a880857378cd239e
Reviewed-on: https://gerrit.libreoffice.org/73121
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 61b75258
......@@ -25,6 +25,7 @@
#include <flat/EPreparedStatement.hxx>
#include <flat/EStatement.hxx>
#include <connectivity/dbexception.hxx>
#include <sal/log.hxx>
using namespace connectivity::flat;
using namespace connectivity::file;
......@@ -67,29 +68,40 @@ void OFlatConnection::construct(const OUString& url,const Sequence< PropertyValu
for(;pBegin != pEnd;++pBegin)
{
if(pBegin->Name == "HeaderLine")
OSL_VERIFY( pBegin->Value >>= m_bHeaderLine );
{
if( ! (pBegin->Value >>= m_bHeaderLine) )
SAL_WARN("connectivity.flat", "construct: unable to get property HeaderLine");
}
else if(pBegin->Name == "FieldDelimiter")
{
OUString aVal;
OSL_VERIFY( pBegin->Value >>= aVal );
if( ! (pBegin->Value >>= aVal) )
SAL_WARN("connectivity.flat", "construct: unable to get property FieldDelimiter");
m_cFieldDelimiter = aVal.toChar();
}
else if(pBegin->Name == "StringDelimiter")
{
OUString aVal;
OSL_VERIFY( pBegin->Value >>= aVal );
if( ! (pBegin->Value >>= aVal) )
SAL_WARN("connectivity.flat", "construct: unable to get property StringDelimiter");
m_cStringDelimiter = aVal.toChar();
}
else if(pBegin->Name == "DecimalDelimiter")
{
OUString aVal;
OSL_VERIFY( pBegin->Value >>= aVal );
if( ! (pBegin->Value >>= aVal) )
SAL_WARN("connectivity.flat", "construct: unable to get property DecimalDelimiter");
m_cDecimalDelimiter = aVal.toChar();
}
else if(pBegin->Name == "ThousandDelimiter")
{
OUString aVal;
OSL_VERIFY( pBegin->Value >>= aVal );
if( ! (pBegin->Value >>= aVal) )
SAL_WARN("connectivity.flat", "construct: unable to get property ThousandDelimiter");
m_cThousandDelimiter = aVal.toChar();
}
else if ( pBegin->Name == "MaxRowScan" )
......
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