diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-03 11:20:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-03 11:20:51 +0200 |
commit | a05ab9ef5e1804faed90f3df2f7fb8cb49065590 (patch) | |
tree | e6103fe46388857b91d51f63be313810ba0774b0 /forms/source | |
parent | 4b3c211cfb4f64f0f31461aa2e623d64224c4423 (diff) |
Remove unnecessary setBOOL, makeBoolAny
Change-Id: Id82c3f352fcc2d4dafad877517098cb6f5d046d4
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/Grid.cxx | 20 | ||||
-rw-r--r-- | forms/source/component/formcontrolfont.cxx | 4 |
2 files changed, 12 insertions, 12 deletions
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: |