Kaydet (Commit) 7fb4d669 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

WaE Mac gcc is confused with >>= operator overload (it is not alone)

>>= operator overload turn the right-value of the operator into a
left value... which confuse the heck out of the compiler's detection
of use of unitialized variables (and also C-reader like me for
whom >>= means something else altogether...
(why on earth are we right-bitshifting... with an unitialized variable...
oh! fracking operator overload!!!)
üst c08f5d7d
......@@ -681,7 +681,7 @@ void PreparedStatement::setObjectWithInfo(
if( com::sun::star::sdbc::DataType::DECIMAL == targetSqlType ||
com::sun::star::sdbc::DataType::NUMERIC == targetSqlType )
{
double myDouble;
double myDouble = 0.0;
OUString myString;
if( x >>= myDouble )
{
......
......@@ -448,7 +448,7 @@ static Sequence< ::rtl::OUString > lookupKeys(
while( enumeration->hasMoreElements() )
{
enumeration->nextElement() >>= set;
sal_Int32 keyType;
sal_Int32 keyType = 0;
if( (set->getPropertyValue( st.TYPE ) >>= keyType ) &&
keyType == com::sun::star::sdbcx::KeyType::PRIMARY )
{
......
......@@ -222,7 +222,7 @@ static void appendColumnList(
OUString type = sqltype2string( column );
if( isAutoIncrement )
{
sal_Int32 dataType;
sal_Int32 dataType = 0;
column->getPropertyValue( st.TYPE ) >>= dataType;
if( com::sun::star::sdbc::DataType::INTEGER == dataType )
{
......
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