Kaydet (Commit) 0c60677c 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 a41bf630
...@@ -681,7 +681,7 @@ void PreparedStatement::setObjectWithInfo( ...@@ -681,7 +681,7 @@ void PreparedStatement::setObjectWithInfo(
if( com::sun::star::sdbc::DataType::DECIMAL == targetSqlType || if( com::sun::star::sdbc::DataType::DECIMAL == targetSqlType ||
com::sun::star::sdbc::DataType::NUMERIC == targetSqlType ) com::sun::star::sdbc::DataType::NUMERIC == targetSqlType )
{ {
double myDouble; double myDouble = 0.0;
OUString myString; OUString myString;
if( x >>= myDouble ) if( x >>= myDouble )
{ {
......
...@@ -448,7 +448,7 @@ static Sequence< ::rtl::OUString > lookupKeys( ...@@ -448,7 +448,7 @@ static Sequence< ::rtl::OUString > lookupKeys(
while( enumeration->hasMoreElements() ) while( enumeration->hasMoreElements() )
{ {
enumeration->nextElement() >>= set; enumeration->nextElement() >>= set;
sal_Int32 keyType; sal_Int32 keyType = 0;
if( (set->getPropertyValue( st.TYPE ) >>= keyType ) && if( (set->getPropertyValue( st.TYPE ) >>= keyType ) &&
keyType == com::sun::star::sdbcx::KeyType::PRIMARY ) keyType == com::sun::star::sdbcx::KeyType::PRIMARY )
{ {
......
...@@ -222,7 +222,7 @@ static void appendColumnList( ...@@ -222,7 +222,7 @@ static void appendColumnList(
OUString type = sqltype2string( column ); OUString type = sqltype2string( column );
if( isAutoIncrement ) if( isAutoIncrement )
{ {
sal_Int32 dataType; sal_Int32 dataType = 0;
column->getPropertyValue( st.TYPE ) >>= dataType; column->getPropertyValue( st.TYPE ) >>= dataType;
if( com::sun::star::sdbc::DataType::INTEGER == 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