summaryrefslogtreecommitdiff
path: root/ucb/source/sorter
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-19 14:09:49 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-19 14:09:49 +0100
commit970be45287de1a046df1c546abb06ad5f6b9c084 (patch)
tree0a88a771e96b5e9d884e5b087adad9d320bdbe7b /ucb/source/sorter
parente35cffb37a792b78f8dbcd85b329fa88097b1ea5 (diff)
Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...)
Diffstat (limited to 'ucb/source/sorter')
-rwxr-xr-xucb/source/sorter/sortresult.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx
index f0a6bb3fb516..f68ac8037e20 100755
--- a/ucb/source/sorter/sortresult.cxx
+++ b/ucb/source/sorter/sortresult.cxx
@@ -1236,7 +1236,7 @@ long SortedResultSet::CompareImpl( Reference < XResultSet > xResultOne,
}
default:
{
- OSL_ENSURE( sal_False, "DataType not supported for compare!" );
+ OSL_FAIL( "DataType not supported for compare!" );
}
}
@@ -1461,7 +1461,7 @@ void SortedResultSet::Initialize(
nIndex++;
}
}
- catch ( SQLException ) { OSL_ENSURE( sal_False, "SortedResultSet::Initialize() : Got unexpected SQLException" ); }
+ catch ( SQLException ) { OSL_FAIL( "SortedResultSet::Initialize() : Got unexpected SQLException" ); }
// when we have fetched all the elements, we can create the
// original to sorted mapping list from the s2o list
@@ -1693,7 +1693,7 @@ void SortedResultSet::BuildSortInfo(
if ( ! xMeta.is() )
{
- OSL_ENSURE( sal_False, "No MetaData, No Sorting!" );
+ OSL_FAIL( "No MetaData, No Sorting!" );
return;
}
@@ -1816,7 +1816,7 @@ void SortedResultSet::ResortModified( EventList* pList )
}
}
}
- catch ( SQLException ) { OSL_ENSURE( sal_False, "SortedResultSet::ResortModified() : Got unexpected SQLException" ); }
+ catch ( SQLException ) { OSL_FAIL( "SortedResultSet::ResortModified() : Got unexpected SQLException" ); }
maModList.Clear();
}
@@ -1849,7 +1849,7 @@ void SortedResultSet::ResortNew( EventList* pList )
pList->AddEvent( ListActionType::INSERTED, nNewPos, 1 );
}
}
- catch ( SQLException ) { OSL_ENSURE( sal_False, "SortedResultSet::ResortNew() : Got unexpected SQLException" ); }
+ catch ( SQLException ) { OSL_FAIL( "SortedResultSet::ResortNew() : Got unexpected SQLException" ); }
}
//-------------------------------------------------------------------------
@@ -1930,12 +1930,12 @@ long SortedEntryList::operator [] ( long nPos ) const
return pData->mnCurPos;
else
{
- OSL_ENSURE( sal_False, "SortedEntryList: Can't get value for modified entry!");
+ OSL_FAIL( "SortedEntryList: Can't get value for modified entry!");
return 0;
}
else
{
- OSL_ENSURE( sal_False, "SortedEntryList: invalid pos!");
+ OSL_FAIL( "SortedEntryList: invalid pos!");
return 0;
}
}