diff options
-rw-r--r-- | dbaccess/source/ui/browser/brwctrlr.cxx | 18 | ||||
-rw-r--r-- | forms/source/component/Grid.cxx | 20 | ||||
-rw-r--r-- | forms/source/component/formcontrolfont.cxx | 4 | ||||
-rw-r--r-- | include/comphelper/types.hxx | 9 | ||||
-rw-r--r-- | sc/source/filter/inc/fapihelper.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh8.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/doc/oleprops.cxx | 2 | ||||
-rw-r--r-- | svx/source/fmcomp/fmgridif.cxx | 2 | ||||
-rw-r--r-- | writerperfect/source/impress/KeynoteImportFilter.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/PageMasterPropHdl.cxx | 2 |
10 files changed, 28 insertions, 38 deletions
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index f7aa3fee77f5..8b456ade177d 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -1671,7 +1671,7 @@ void SbaXDataBrowserController::applyParserFilter(const OUString& _rOldFilter, b FormErrorHelper aError(this); xFormSet->setPropertyValue(PROPERTY_FILTER, makeAny(_xParser->getFilter())); xFormSet->setPropertyValue(PROPERTY_HAVING_CLAUSE, makeAny(_xParser->getHavingClause())); - xFormSet->setPropertyValue(PROPERTY_APPLYFILTER, ::comphelper::makeBoolAny(true)); + xFormSet->setPropertyValue(PROPERTY_APPLYFILTER, css::uno::Any(true)); bSuccess = reloadForm(m_xLoadable); } @@ -1683,7 +1683,7 @@ void SbaXDataBrowserController::applyParserFilter(const OUString& _rOldFilter, b { xFormSet->setPropertyValue(PROPERTY_FILTER, makeAny(_rOldFilter)); xFormSet->setPropertyValue(PROPERTY_HAVING_CLAUSE, makeAny(_sOldHaving)); - xFormSet->setPropertyValue(PROPERTY_APPLYFILTER, ::comphelper::makeBoolAny(_bOldFilterApplied)); + xFormSet->setPropertyValue(PROPERTY_APPLYFILTER, css::uno::Any(_bOldFilterApplied)); try { @@ -1834,8 +1834,8 @@ void SbaXDataBrowserController::ExecuteSearch() // prohibit the synchronization of the grid's display with the cursor's position Reference< XPropertySet > xModelSet(getControlModel(), UNO_QUERY); OSL_ENSURE(xModelSet.is(), "SbaXDataBrowserController::ExecuteSearch : no model set ?!"); - xModelSet->setPropertyValue("DisplayIsSynchron", ::comphelper::makeBoolAny(false)); - xModelSet->setPropertyValue("AlwaysShowCursor", ::comphelper::makeBoolAny(true)); + xModelSet->setPropertyValue("DisplayIsSynchron", css::uno::Any(false)); + xModelSet->setPropertyValue("AlwaysShowCursor", css::uno::Any(true)); xModelSet->setPropertyValue("CursorColor", makeAny(sal_Int32(COL_LIGHTRED))); Reference< css::util::XNumberFormatsSupplier > xNFS(::dbtools::getNumberFormats(::dbtools::getConnection(m_xRowSet), true, getORB())); @@ -1859,8 +1859,8 @@ void SbaXDataBrowserController::ExecuteSearch() } // restore the grid's normal operating state - xModelSet->setPropertyValue("DisplayIsSynchron", ::comphelper::makeBoolAny(true)); - xModelSet->setPropertyValue("AlwaysShowCursor", ::comphelper::makeBoolAny(false)); + xModelSet->setPropertyValue("DisplayIsSynchron", css::uno::Any(true)); + xModelSet->setPropertyValue("AlwaysShowCursor", css::uno::Any(false)); xModelSet->setPropertyValue("CursorColor", Any()); } @@ -1912,7 +1912,7 @@ void SbaXDataBrowserController::Execute(sal_uInt16 nId, const Sequence< Property { Reference< XPropertySet > xActiveSet(getRowSet(), UNO_QUERY); bool bApplied = ::comphelper::getBOOL(xActiveSet->getPropertyValue(PROPERTY_APPLYFILTER)); - xActiveSet->setPropertyValue(PROPERTY_APPLYFILTER, ::comphelper::makeBoolAny(!bApplied)); + xActiveSet->setPropertyValue(PROPERTY_APPLYFILTER, css::uno::Any(!bApplied)); reloadForm(m_xLoadable); } InvalidateFeature(ID_BROWSER_FILTERED); @@ -2376,7 +2376,7 @@ IMPL_LINK_TYPED(SbaXDataBrowserController, OnFoundData, FmFoundRecordInformation Reference< XPropertySet > xModelSet(getControlModel(), UNO_QUERY); OSL_ENSURE(xModelSet.is(), "SbaXDataBrowserController::OnFoundData : no model set ?!"); Any aOld = xModelSet->getPropertyValue("DisplayIsSynchron"); - xModelSet->setPropertyValue("DisplayIsSynchron", ::comphelper::makeBoolAny(true)); + xModelSet->setPropertyValue("DisplayIsSynchron", css::uno::Any(true)); xModelSet->setPropertyValue("DisplayIsSynchron", aOld); // and move to the field @@ -2420,7 +2420,7 @@ IMPL_LINK_TYPED(SbaXDataBrowserController, OnCanceledNotFound, FmFoundRecordInfo Reference< XPropertySet > xModelSet(getControlModel(), UNO_QUERY); OSL_ENSURE(xModelSet.is(), "SbaXDataBrowserController::OnCanceledNotFound : no model set ?!"); Any aOld = xModelSet->getPropertyValue("DisplayIsSynchron"); - xModelSet->setPropertyValue("DisplayIsSynchron", ::comphelper::makeBoolAny(true)); + xModelSet->setPropertyValue("DisplayIsSynchron", css::uno::Any(true)); xModelSet->setPropertyValue("DisplayIsSynchron", aOld); } catch( const Exception& ) diff --git a/forms/source/component/Grid.cxx b/forms/source/component/Grid.cxx index 2b3459178877..45b046b0f071 100644 --- a/forms/source/component/Grid.cxx +++ b/forms/source/component/Grid.cxx @@ -440,31 +440,31 @@ void OGridControlModel::getFastPropertyValue(Any& rValue, sal_Int32 nHandle ) co rValue <<= m_sHelpURL; break; case PROPERTY_ID_DISPLAYSYNCHRON: - setBOOL(rValue, m_bDisplaySynchron); + rValue <<= m_bDisplaySynchron; break; case PROPERTY_ID_ALWAYSSHOWCURSOR: - setBOOL(rValue, m_bAlwaysShowCursor); + rValue <<= m_bAlwaysShowCursor; break; case PROPERTY_ID_CURSORCOLOR: rValue = m_aCursorColor; break; case PROPERTY_ID_PRINTABLE: - setBOOL(rValue, m_bPrintable); + rValue <<= m_bPrintable; break; case PROPERTY_ID_TABSTOP: rValue = m_aTabStop; break; case PROPERTY_ID_HASNAVIGATION: - setBOOL(rValue, m_bNavigation); + rValue <<= m_bNavigation; break; case PROPERTY_ID_RECORDMARKER: - setBOOL(rValue, m_bRecordMarker); + rValue <<= m_bRecordMarker; break; case PROPERTY_ID_ENABLED: - setBOOL(rValue, m_bEnable); + rValue <<= m_bEnable; break; case PROPERTY_ID_ENABLEVISIBLE: - setBOOL(rValue, m_bEnableVisible); + rValue <<= m_bEnableVisible; break; case PROPERTY_ID_BORDER: rValue <<= (sal_Int16)m_nBorder; @@ -664,10 +664,10 @@ Any OGridControlModel::getPropertyDefaultByHandle( sal_Int32 nHandle ) const case PROPERTY_ID_DISPLAYSYNCHRON: case PROPERTY_ID_ENABLED: case PROPERTY_ID_ENABLEVISIBLE: - aReturn = makeBoolAny(true); + aReturn <<= true; break; case PROPERTY_ID_ALWAYSSHOWCURSOR: - aReturn = makeBoolAny(false); + aReturn <<= false; break; case PROPERTY_ID_HELPURL: case PROPERTY_ID_HELPTEXT: @@ -965,7 +965,7 @@ void OGridControlModel::read(const Reference<XObjectInputStream>& _rxInStream) t m_bEnable = _rxInStream->readBoolean(); if (nAnyMask & TABSTOP) { - m_aTabStop = makeBoolAny(_rxInStream->readBoolean() != 0); + m_aTabStop <<= (_rxInStream->readBoolean() != 0); } if (nVersion > 3) m_bNavigation = _rxInStream->readBoolean(); diff --git a/forms/source/component/formcontrolfont.cxx b/forms/source/component/formcontrolfont.cxx index c188a079fbae..9cc33a6d0f40 100644 --- a/forms/source/component/formcontrolfont.cxx +++ b/forms/source/component/formcontrolfont.cxx @@ -527,7 +527,7 @@ namespace frm break; case PROPERTY_ID_FONT_WORDLINEMODE: - aReturn = makeBoolAny(false); + aReturn <<= false; break; case PROPERTY_ID_FONT_NAME: @@ -544,7 +544,7 @@ namespace frm break; case PROPERTY_ID_FONT_KERNING: - aReturn = makeBoolAny(false); + aReturn <<= false; break; case PROPERTY_ID_FONT_PITCH: diff --git a/include/comphelper/types.hxx b/include/comphelper/types.hxx index 0279ccb3bccf..a194374e1f63 100644 --- a/include/comphelper/types.hxx +++ b/include/comphelper/types.hxx @@ -92,15 +92,6 @@ namespace comphelper COMPHELPER_DLLPUBLIC sal_Int32 getEnumAsINT32(const css::uno::Any& _rAny) throw(css::lang::IllegalArgumentException); -//= replacement of some former UsrAny.setXXX methods - can be used with rvalues - inline void setBOOL(css::uno::Any& _rAny, bool _b) - { _rAny.setValue(&_b, cppu::UnoType<bool>::get()); } - -//= extension of ::cppu::makeAny() - inline css::uno::Any makeBoolAny(bool _b) - { return css::uno::Any(&_b, cppu::UnoType<bool>::get()); } - - } // namespace comphelper diff --git a/sc/source/filter/inc/fapihelper.hxx b/sc/source/filter/inc/fapihelper.hxx index f1693c1e4dd1..aa40eff5d9ab 100644 --- a/sc/source/filter/inc/fapihelper.hxx +++ b/sc/source/filter/inc/fapihelper.hxx @@ -180,7 +180,7 @@ public: /** Puts the passed Boolean value into the property set. */ inline void SetBoolProperty( const OUString& rPropName, bool bValue ) - { SetAnyProperty( rPropName, ::comphelper::makeBoolAny( bValue ) ); } + { SetAnyProperty( rPropName, css::uno::Any( bValue ) ); } /** Puts the passed string into the property set. */ inline void SetStringProperty( const OUString& rPropName, const OUString& rValue ) diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx index 9b5df568fc8b..c160b8a9c4fa 100644 --- a/sc/source/ui/docshell/docsh8.cxx +++ b/sc/source/ui/docshell/docsh8.cxx @@ -205,8 +205,7 @@ bool ScDocShell::KillFile( const INetURLObject& rURL ) ::ucbhelper::Content aCnt( rURL.GetMainURL(INetURLObject::NO_DECODE), uno::Reference< css::ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() ); - aCnt.executeCommand( "delete", - comphelper::makeBoolAny( true ) ); + aCnt.executeCommand( "delete", css::uno::Any( true ) ); } catch( uno::Exception& ) { diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx index d9f3f3dbacf7..2d1fe085654c 100644 --- a/sfx2/source/doc/oleprops.cxx +++ b/sfx2/source/doc/oleprops.cxx @@ -880,7 +880,7 @@ Any SfxOleSection::GetAnyValue( sal_Int32 nPropId ) const else if( GetDoubleValue( fDouble, nPropId ) ) aValue <<= fDouble; else if( GetBoolValue( bBool, nPropId ) ) - ::comphelper::setBOOL( aValue, bBool ); + aValue <<= bBool; else if( GetStringValue( aString, nPropId ) ) aValue <<= aString; else if( GetFileTimeValue( aApiDateTime, nPropId ) ) diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index fdb36b6b2dde..ae3e5c07cdbf 100644 --- a/svx/source/fmcomp/fmgridif.cxx +++ b/svx/source/fmcomp/fmgridif.cxx @@ -1343,7 +1343,7 @@ Sequence< Any > SAL_CALL FmXGridPeer::queryFieldData( sal_Int32 nRow, const Type case TypeClass_LONG : pReturnArray[i] <<= (sal_Int32)xFieldContent->getLong(); break; case TypeClass_UNSIGNED_SHORT : pReturnArray[i] <<= (sal_uInt16)xFieldContent->getShort(); break; case TypeClass_UNSIGNED_LONG : pReturnArray[i] <<= (sal_uInt32)xFieldContent->getLong(); break; - case TypeClass_BOOLEAN : ::comphelper::setBOOL(pReturnArray[i],xFieldContent->getBoolean()); break; + case TypeClass_BOOLEAN : pReturnArray[i] <<= xFieldContent->getBoolean(); break; default: { throw IllegalArgumentException(); diff --git a/writerperfect/source/impress/KeynoteImportFilter.cxx b/writerperfect/source/impress/KeynoteImportFilter.cxx index 96fc8dae10e3..1547d1d27222 100644 --- a/writerperfect/source/impress/KeynoteImportFilter.cxx +++ b/writerperfect/source/impress/KeynoteImportFilter.cxx @@ -209,7 +209,7 @@ throw(css::uno::RuntimeException, std::exception) lComponentDataNV.realloc(nCDSize + 1); beans::NamedValue aValue; aValue.Name = "IsPackage"; - aValue.Value = comphelper::makeBoolAny(true); + aValue.Value <<= true; lComponentDataNV[nCDSize] = aValue; Descriptor[nComponentDataLocation].Value <<= lComponentDataNV; } @@ -219,7 +219,7 @@ throw(css::uno::RuntimeException, std::exception) lComponentDataPV.realloc(nCDSize + 1); beans::PropertyValue aProp; aProp.Name = "IsPackage"; - aProp.Value = comphelper::makeBoolAny(true); + aProp.Value <<= true; aProp.Handle = -1; aProp.State = beans::PropertyState_DIRECT_VALUE; lComponentDataPV[nCDSize] = aProp; diff --git a/xmloff/source/style/PageMasterPropHdl.cxx b/xmloff/source/style/PageMasterPropHdl.cxx index 96968fee69fd..6099d4789c68 100644 --- a/xmloff/source/style/PageMasterPropHdl.cxx +++ b/xmloff/source/style/PageMasterPropHdl.cxx @@ -295,7 +295,7 @@ bool XMLPMPropHdl_Print::importXML( } while ( (nTokenIndex >= 0) && !bFound ); - setBOOL( rValue, bFound ); + rValue <<= bFound; return true; } |