remove some sal_Bool remnants
Change-Id: I0a9637aca523a73fbdbbd22f9ad735d6d1ba6898 Reviewed-on: https://gerrit.libreoffice.org/48273 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
342a56deda
commit
3b666f6819
@ -1432,7 +1432,7 @@ void OResultSet::setBoundedColumns(const OValueRefRow& _rRow,
|
||||
const OUString sRealName = OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_REALNAME);
|
||||
const OUString sType = OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE);
|
||||
|
||||
std::map<OSQLColumns::Vector::iterator,sal_Bool> aSelectIters;
|
||||
std::map<OSQLColumns::Vector::iterator,bool> aSelectIters;
|
||||
OValueRefVector::Vector::const_iterator aRowIter = _rRow->get().begin()+1;
|
||||
for (sal_Int32 i=0; // the first column is the bookmark column
|
||||
aRowIter != _rRow->get().end();
|
||||
|
@ -54,10 +54,9 @@ using namespace comphelper;
|
||||
struct SvxSaveTabPage_Impl
|
||||
{
|
||||
Reference< XNameContainer > xFact;
|
||||
Sequence< OUString > aFilterArr[APP_COUNT];
|
||||
Sequence< sal_Bool > aAlienArr[APP_COUNT];
|
||||
Sequence< sal_Bool > aODFArr[APP_COUNT];
|
||||
Sequence< OUString > aUIFilterArr[APP_COUNT];
|
||||
std::vector< OUString > aFilterArr[APP_COUNT];
|
||||
std::vector< bool > aODFArr[APP_COUNT];
|
||||
std::vector< OUString > aUIFilterArr[APP_COUNT];
|
||||
OUString aDefaultArr[APP_COUNT];
|
||||
bool aDefaultReadonlyArr[APP_COUNT];
|
||||
bool bInitialized;
|
||||
@ -429,8 +428,8 @@ void SvxSaveTabPage::Reset( const SfxItemSet* )
|
||||
sCommand = sCommand.replaceFirst("%1", sReplace);
|
||||
Reference< XEnumeration > xList = xQuery->createSubSetEnumerationByQuery(sCommand);
|
||||
std::vector< OUString > lList;
|
||||
std::vector< sal_Bool > lAlienList;
|
||||
std::vector< sal_Bool > lODFList;
|
||||
std::vector<bool> lAlienList;
|
||||
std::vector<bool> lODFList;
|
||||
while(xList->hasMoreElements())
|
||||
{
|
||||
SequenceAsHashMap aFilter(xList->nextElement());
|
||||
@ -443,9 +442,8 @@ void SvxSaveTabPage::Reset( const SfxItemSet* )
|
||||
lODFList.push_back( isODFFormat( sFilter ) );
|
||||
}
|
||||
}
|
||||
pImpl->aFilterArr[nData] = comphelper::containerToSequence(lList);
|
||||
pImpl->aAlienArr[nData] = comphelper::containerToSequence(lAlienList);
|
||||
pImpl->aODFArr[nData] = comphelper::containerToSequence(lODFList);
|
||||
pImpl->aFilterArr[nData] = lList;
|
||||
pImpl->aODFArr[nData] = lODFList;
|
||||
}
|
||||
}
|
||||
aDocTypeLB->SelectEntryPos(0);
|
||||
@ -571,36 +569,36 @@ IMPL_LINK( SvxSaveTabPage, FilterHdl_Impl, ListBox&, rBox, void )
|
||||
if(aDocTypeLB == &rBox)
|
||||
{
|
||||
aSaveAsLB->Clear();
|
||||
const OUString* pFilters = pImpl->aFilterArr[nData].getConstArray();
|
||||
if(!pImpl->aUIFilterArr[nData].getLength())
|
||||
auto & rFilters = pImpl->aFilterArr[nData];
|
||||
if(!pImpl->aUIFilterArr[nData].size())
|
||||
{
|
||||
pImpl->aUIFilterArr[nData].realloc(pImpl->aFilterArr[nData].getLength());
|
||||
OUString* pUIFilters = pImpl->aUIFilterArr[nData].getArray();
|
||||
for(int nFilter = 0; nFilter < pImpl->aFilterArr[nData].getLength(); nFilter++)
|
||||
pImpl->aUIFilterArr[nData].resize(pImpl->aFilterArr[nData].size());
|
||||
auto & rUIFilters = pImpl->aUIFilterArr[nData];
|
||||
for(size_t nFilter = 0; nFilter < pImpl->aFilterArr[nData].size(); nFilter++)
|
||||
{
|
||||
Any aProps = pImpl->xFact->getByName(pFilters[nFilter]);
|
||||
Any aProps = pImpl->xFact->getByName(rFilters[nFilter]);
|
||||
// get the extension of the filter
|
||||
OUString extension;
|
||||
SfxFilterMatcher matcher;
|
||||
std::shared_ptr<const SfxFilter> pFilter = matcher.GetFilter4FilterName(pFilters[nFilter]);
|
||||
std::shared_ptr<const SfxFilter> pFilter = matcher.GetFilter4FilterName(rFilters[nFilter]);
|
||||
if (pFilter)
|
||||
{
|
||||
extension = pFilter->GetWildcard().getGlob().getToken(0, ';');
|
||||
}
|
||||
Sequence<PropertyValue> aProperties;
|
||||
aProps >>= aProperties;
|
||||
pUIFilters[nFilter] = lcl_ExtracUIName(aProperties, extension);
|
||||
rUIFilters[nFilter] = lcl_ExtracUIName(aProperties, extension);
|
||||
}
|
||||
}
|
||||
const OUString* pUIFilters = pImpl->aUIFilterArr[nData].getConstArray();
|
||||
auto const & rUIFilters = pImpl->aUIFilterArr[nData];
|
||||
OUString sSelect;
|
||||
for(int i = 0; i < pImpl->aUIFilterArr[nData].getLength(); i++)
|
||||
for(size_t i = 0; i < pImpl->aUIFilterArr[nData].size(); i++)
|
||||
{
|
||||
const sal_Int32 nEntryPos = aSaveAsLB->InsertEntry(pUIFilters[i]);
|
||||
const sal_Int32 nEntryPos = aSaveAsLB->InsertEntry(rUIFilters[i]);
|
||||
if ( pImpl->aODFArr[nData][i] )
|
||||
aSaveAsLB->SetEntryData( nEntryPos, static_cast<void*>(pImpl.get()) );
|
||||
if(pFilters[i] == pImpl->aDefaultArr[nData])
|
||||
sSelect = pUIFilters[i];
|
||||
if(rFilters[i] == pImpl->aDefaultArr[nData])
|
||||
sSelect = rUIFilters[i];
|
||||
}
|
||||
if(!sSelect.isEmpty())
|
||||
{
|
||||
@ -613,12 +611,12 @@ IMPL_LINK( SvxSaveTabPage, FilterHdl_Impl, ListBox&, rBox, void )
|
||||
else
|
||||
{
|
||||
OUString sSelect = rBox.GetSelectedEntry();
|
||||
const OUString* pFilters = pImpl->aFilterArr[nData].getConstArray();
|
||||
OUString* pUIFilters = pImpl->aUIFilterArr[nData].getArray();
|
||||
for(int i = 0; i < pImpl->aUIFilterArr[nData].getLength(); i++)
|
||||
if(pUIFilters[i] == sSelect)
|
||||
auto const & rFilters = pImpl->aFilterArr[nData];
|
||||
auto const & rUIFilters = pImpl->aUIFilterArr[nData];
|
||||
for(size_t i = 0; i < pImpl->aUIFilterArr[nData].size(); i++)
|
||||
if(rUIFilters[i] == sSelect)
|
||||
{
|
||||
sSelect = pFilters[i];
|
||||
sSelect = rFilters[i];
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -154,7 +154,7 @@ namespace dbaui
|
||||
};
|
||||
static DispatchType classifyDispatchURL( const css::util::URL& _rURL );
|
||||
|
||||
typedef std::map<DispatchType, sal_Bool> MapDispatchToBool;
|
||||
typedef std::map<DispatchType, bool> MapDispatchToBool;
|
||||
MapDispatchToBool m_aDispatchStates;
|
||||
};
|
||||
|
||||
|
@ -180,7 +180,7 @@ ODatabaseExport::ODatabaseExport(const SharedConnection& _rxConnection,
|
||||
{
|
||||
::connectivity::ORowSetValue aValue;
|
||||
std::vector<sal_Int32> aTypes;
|
||||
std::vector<sal_Bool> aNullable;
|
||||
std::vector<bool> aNullable;
|
||||
Reference<XResultSetMetaData> xResultSetMetaData = Reference<XResultSetMetaDataSupplier>(xSet,UNO_QUERY_THROW)->getMetaData();
|
||||
Reference<XRow> xRow(xSet,UNO_QUERY_THROW);
|
||||
while(xSet->next())
|
||||
|
@ -438,7 +438,7 @@ void fillTypeInfo( const Reference< css::sdbc::XConnection>& _rxConnection,
|
||||
Reference<XResultSetMetaData> xResultSetMetaData = Reference<XResultSetMetaDataSupplier>(xRs,UNO_QUERY)->getMetaData();
|
||||
::connectivity::ORowSetValue aValue;
|
||||
std::vector<sal_Int32> aTypes;
|
||||
std::vector<sal_Bool> aNullable;
|
||||
std::vector<bool> aNullable;
|
||||
// Loop on the result set until we reach end of file
|
||||
while (xRs->next())
|
||||
{
|
||||
|
@ -50,7 +50,7 @@ class OComponentEventThread
|
||||
{
|
||||
typedef std::vector<css::lang::EventObject*> ThreadEvents;
|
||||
typedef std::vector< css::uno::Reference< css::uno::XAdapter> > ThreadObjects;
|
||||
typedef std::vector<sal_Bool> ThreadBools;
|
||||
typedef std::vector<bool> ThreadBools;
|
||||
|
||||
::osl::Mutex m_aMutex;
|
||||
::osl::Condition m_aCond; // Queue filled?
|
||||
|
@ -178,7 +178,7 @@ private:
|
||||
OString m_sFileName;
|
||||
|
||||
/// Mapping XML tag names <-> have localizable strings
|
||||
std::unordered_map<OString, sal_Bool> m_aNodes_localize;
|
||||
std::unordered_map<OString, bool> m_aNodes_localize;
|
||||
|
||||
std::unique_ptr<XMLHashMap> m_pXMLStrings;
|
||||
|
||||
|
@ -3035,7 +3035,7 @@ void FmXFormShell::stopFiltering_Lock(bool bSave)
|
||||
{
|
||||
const ::std::vector< Reference< runtime::XFormController > >& rControllerList = pAdapter->GetList();
|
||||
::std::vector < OUString > aOriginalFilters;
|
||||
::std::vector < sal_Bool > aOriginalApplyFlags;
|
||||
::std::vector < bool > aOriginalApplyFlags;
|
||||
|
||||
if (bSave)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ static sal_Int32 nRefCount = 0;
|
||||
class SvtOptionsDlgOptions_Impl : public utl::ConfigItem
|
||||
{
|
||||
private:
|
||||
typedef std::unordered_map< OUString, sal_Bool > OptionNodeList;
|
||||
typedef std::unordered_map< OUString, bool > OptionNodeList;
|
||||
|
||||
OUString m_sPathDelimiter;
|
||||
OptionNodeList m_aOptionNodeList;
|
||||
|
Loading…
x
Reference in New Issue
Block a user