summaryrefslogtreecommitdiffstats
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-24 11:22:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-28 10:17:47 +0000
commit198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac (patch)
tree041d55126e9770b81f68fadfaaa69e82313786b3 /dbaccess
parentKeep the order that is in the header. (diff)
downloadcore-198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac.tar.gz
core-198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac.zip
new loplugin unoany
Change-Id: I5d6c4a67cb2a09e7cd5bd620c6b262d188701b89 Reviewed-on: https://gerrit.libreoffice.org/34714 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/CacheSet.cxx2
-rw-r--r--dbaccess/source/core/dataaccess/ContentHelper.cxx4
-rw-r--r--dbaccess/source/ui/querydesign/limitboxcontroller.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/dbaccess/source/core/api/CacheSet.cxx b/dbaccess/source/core/api/CacheSet.cxx
index f15c752e6972..fbeaef4f4a5e 100644
--- a/dbaccess/source/core/api/CacheSet.cxx
+++ b/dbaccess/source/core/api/CacheSet.cxx
@@ -383,7 +383,7 @@ void OCacheSet::fillValueRow(ORowSetRow& _rRow,sal_Int32 _nPosition)
{
Any aBookmark = getBookmark();
if(!aBookmark.hasValue())
- aBookmark = makeAny(_nPosition);
+ aBookmark <<= _nPosition;
connectivity::ORowVector< ORowSetValue >::Vector::iterator aIter = _rRow->get().begin();
connectivity::ORowVector< ORowSetValue >::Vector::iterator aEnd = _rRow->get().end();
diff --git a/dbaccess/source/core/dataaccess/ContentHelper.cxx b/dbaccess/source/core/dataaccess/ContentHelper.cxx
index 59b1e886e7fd..88fa1275215f 100644
--- a/dbaccess/source/core/dataaccess/ContentHelper.cxx
+++ b/dbaccess/source/core/dataaccess/ContentHelper.cxx
@@ -362,14 +362,14 @@ Sequence< Any > OContentHelper::setPropertyValues(const Sequence< PropertyValue
if ( aNewValue != m_pImpl->m_aProps.aTitle )
{
aEvent.PropertyName = rValue.Name;
- aEvent.OldValue = makeAny( m_pImpl->m_aProps.aTitle );
+ aEvent.OldValue <<= m_pImpl->m_aProps.aTitle;
try
{
impl_rename_throw( aNewValue ,false);
OSL_ENSURE( m_pImpl->m_aProps.aTitle == aNewValue, "OContentHelper::setPropertyValues('Title'): rename did not work!" );
- aEvent.NewValue = makeAny( aNewValue );
+ aEvent.NewValue <<= aNewValue;
aChanges.getArray()[ nChanged ] = aEvent;
nChanged++;
}
diff --git a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx
index dac50054acb4..fc06709657d0 100644
--- a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx
+++ b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx
@@ -57,7 +57,7 @@ bool LimitBoxImpl::EventNotify( NotifyEvent& rNEvt )
bHandled = LimitBox::EventNotify(rNEvt);
uno::Sequence< beans::PropertyValue > aArgs( 1 );
aArgs[0].Name = "DBLimit.Value";
- aArgs[0].Value = uno::makeAny( GetValue() );
+ aArgs[0].Value <<= GetValue();
m_pControl->dispatchCommand( aArgs );
break;
}
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index 6d20196910bd..203e12adac2f 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -505,7 +505,7 @@ FeatureState OQueryController::GetState(sal_uInt16 _nId) const
case SID_QUERY_LIMIT:
aReturn.bEnabled = m_bGraphicalDesign;
if( aReturn.bEnabled )
- aReturn.aValue = makeAny( m_nLimit );
+ aReturn.aValue <<= m_nLimit;
break;
case SID_QUERY_PROP_DLG:
aReturn.bEnabled = m_bGraphicalDesign;