summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2014-01-06 14:10:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-06 16:32:20 +0000
commit9e77ddcd19d328c54ed0fb3ebb83f585b85f0249 (patch)
tree41843d922d70b433a0e5647b0fdcdb406fa6be0e
parent01329972d89ddfd30d197b7947c571fdb83b0cf8 (diff)
Resolves: #i123817# prepare codebase for updating to boost 1.55
(cherry picked from commit c31988351c10e9f3fd783730d95da34efd52c153) Conflicts: basic/source/comp/parser.cxx basic/source/comp/token.cxx dbaccess/source/ui/dlg/generalpage.cxx sc/source/ui/unoobj/chart2uno.cxx vcl/quartz/salbmp.cxx Change-Id: Ic9580f2d4a44959cb3e38906eb4153b2c2a54899
-rw-r--r--basic/source/comp/parser.cxx2
-rw-r--r--basic/source/comp/token.cxx4
-rw-r--r--basic/source/inc/token.hxx2
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx2
-rw-r--r--extensions/source/logging/filehandler.cxx2
-rw-r--r--extensions/source/propctrlr/composeduiupdate.cxx2
-rw-r--r--extensions/source/propctrlr/eformspropertyhandler.cxx2
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx2
-rw-r--r--extensions/source/propctrlr/propertycomposer.cxx2
-rw-r--r--extensions/source/propctrlr/submissionhandler.cxx2
-rw-r--r--extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx2
-rw-r--r--sc/source/core/data/documen3.cxx2
-rw-r--r--sc/source/core/data/dpsave.cxx4
-rw-r--r--sc/source/core/data/table5.cxx2
-rw-r--r--sc/source/ui/Accessibility/AccessibleText.cxx2
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx6
-rw-r--r--sd/source/ui/accessibility/AccessibleSlideSorterView.cxx2
-rw-r--r--sd/source/ui/tools/PreviewRenderer.cxx4
-rw-r--r--svx/source/dialog/svxruler.cxx18
-rw-r--r--svx/source/form/formcontroller.cxx2
-rw-r--r--toolkit/source/helper/formpdfexport.cxx2
-rw-r--r--vcl/quartz/salbmp.cxx2
22 files changed, 35 insertions, 35 deletions
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx
index da4420b4fe01..a132e8988946 100644
--- a/basic/source/comp/parser.cxx
+++ b/basic/source/comp/parser.cxx
@@ -758,7 +758,7 @@ void SbiParser::Option()
{
switch( Next() )
{
- case EXPLICIT:
+ case BASIC_EXPLICIT:
bExplicit = true; break;
case BASE:
if( Next() == NUMBER )
diff --git a/basic/source/comp/token.cxx b/basic/source/comp/token.cxx
index bc0519dfeb00..d283f2e5ddd7 100644
--- a/basic/source/comp/token.cxx
+++ b/basic/source/comp/token.cxx
@@ -96,7 +96,7 @@ static const TokenTable aTokTable_Basic [] = {
{ ERASE, "Erase" },
{ _ERROR_, "Error" },
{ EXIT, "Exit" },
- { EXPLICIT, "Explicit" },
+ { BASIC_EXPLICIT, "Explicit" },
{ FOR, "For" },
{ FUNCTION, "Function" },
{ GET, "Get" },
@@ -192,7 +192,7 @@ TokenLabelInfo::TokenLabelInfo( void )
}
// Token accepted as label by VBA
SbiToken eLabelToken[] = { ACCESS, ALIAS, APPEND, BASE, BINARY, CLASSMODULE,
- COMPARE, COMPATIBLE, DEFERR, _ERROR_, EXPLICIT, LIB, LINE, LPRINT, NAME,
+ COMPARE, COMPATIBLE, DEFERR, _ERROR_, BASIC_EXPLICIT, LIB, LINE, LPRINT, NAME,
TOBJECT, OUTPUT, PROPERTY, RANDOM, READ, STEP, STOP, TEXT, VBASUPPORT, NIL };
SbiToken* pTok = eLabelToken;
SbiToken eTok;
diff --git a/basic/source/inc/token.hxx b/basic/source/inc/token.hxx
index cb40559ea763..0b6482ac98ff 100644
--- a/basic/source/inc/token.hxx
+++ b/basic/source/inc/token.hxx
@@ -89,7 +89,7 @@ enum SbiToken {
NUMBER=FIRSTEXTRA, FIXSTRING, SYMBOL, _CDECL_, BYVAL, BYREF,
OUTPUT, RANDOM, APPEND, BINARY, ACCESS,
LOCK, READ, PRESERVE, BASE, ANY, LIB, _OPTIONAL_,
- EXPLICIT, COMPATIBLE, CLASSMODULE, PARAMARRAY, WITHEVENTS,
+ BASIC_EXPLICIT, COMPATIBLE, CLASSMODULE, PARAMARRAY, WITHEVENTS,
// from here there are JavaScript-tokens (same enum so that same type)
FIRSTJAVA,
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx
index cd08ec64fba2..59bc8be8ccf6 100644
--- a/dtrans/source/win32/clipb/WinClipboard.cxx
+++ b/dtrans/source/win32/clipb/WinClipboard.cxx
@@ -265,7 +265,7 @@ void SAL_CALL CWinClipboard::disposing()
m_pImpl->dispose( );
// force destruction of the impl class
- m_pImpl.reset( NULL );
+ m_pImpl.reset();
}
// -------------------------------------------------
diff --git a/extensions/source/logging/filehandler.cxx b/extensions/source/logging/filehandler.cxx
index e600315d6321..d2dc622dcf1a 100644
--- a/extensions/source/logging/filehandler.cxx
+++ b/extensions/source/logging/filehandler.cxx
@@ -247,7 +247,7 @@ namespace logging
impl_writeString_nothrow( sTail );
}
- m_pFile.reset( NULL );
+ m_pFile.reset();
m_aHandlerHelper.setFormatter( NULL );
}
diff --git a/extensions/source/propctrlr/composeduiupdate.cxx b/extensions/source/propctrlr/composeduiupdate.cxx
index 87a174b958c6..1a32827c1e76 100644
--- a/extensions/source/propctrlr/composeduiupdate.cxx
+++ b/extensions/source/propctrlr/composeduiupdate.cxx
@@ -825,7 +825,7 @@ namespace pcr
{
singleUI->second->dispose();
}
- m_pCollectedUIs.reset( NULL );
+ m_pCollectedUIs.reset();
m_xDelegatorUI.set( NULL );
}
diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx
index 8d1417fa0b8a..4eb799677624 100644
--- a/extensions/source/propctrlr/eformspropertyhandler.cxx
+++ b/extensions/source/propctrlr/eformspropertyhandler.cxx
@@ -281,7 +281,7 @@ namespace pcr
if ( EFormsHelper::isEForm( xDocument ) )
m_pHelper.reset( new EFormsHelper( m_aMutex, m_xComponent, xDocument ) );
else
- m_pHelper.reset( NULL );
+ m_pHelper.reset();
}
//--------------------------------------------------------------------
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index 099278184fa4..6e8423291258 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -895,7 +895,7 @@ namespace pcr
// handlers are obsolete, so is our "composer" for their UI requests
if ( m_pUIRequestComposer.get() )
m_pUIRequestComposer->dispose();
- m_pUIRequestComposer.reset( NULL );
+ m_pUIRequestComposer.reset();
// clean up the property handlers
PropertyHandlerArray aAllHandlers; // will contain every handler exactly once
diff --git a/extensions/source/propctrlr/propertycomposer.cxx b/extensions/source/propctrlr/propertycomposer.cxx
index 2fe8c5663854..cbc14a316bde 100644
--- a/extensions/source/propctrlr/propertycomposer.cxx
+++ b/extensions/source/propctrlr/propertycomposer.cxx
@@ -434,7 +434,7 @@ namespace pcr
if ( m_pUIRequestComposer.get() )
m_pUIRequestComposer->dispose();
- m_pUIRequestComposer.reset( NULL );
+ m_pUIRequestComposer.reset();
}
//--------------------------------------------------------------------
diff --git a/extensions/source/propctrlr/submissionhandler.cxx b/extensions/source/propctrlr/submissionhandler.cxx
index c2d20037bd4f..bdb8a10612ac 100644
--- a/extensions/source/propctrlr/submissionhandler.cxx
+++ b/extensions/source/propctrlr/submissionhandler.cxx
@@ -250,7 +250,7 @@ namespace pcr
Reference< frame::XModel > xDocument( impl_getContextDocument_nothrow() );
DBG_ASSERT( xDocument.is(), "SubmissionPropertyHandler::onNewComponent: no document!" );
- m_pHelper.reset( NULL );
+ m_pHelper.reset();
if ( SubmissionHelper::canTriggerSubmissions( m_xComponent, xDocument ) )
{
diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
index 54ce977fd3d1..edf7f6ee3e46 100644
--- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
+++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
@@ -168,7 +168,7 @@ namespace pcr
if ( EFormsHelper::isEForm( xDocument ) )
m_pHelper.reset( new XSDValidationHelper( m_aMutex, m_xComponent, xDocument ) );
else
- m_pHelper.reset( NULL );
+ m_pHelper.reset();
}
//--------------------------------------------------------------------
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 0b681386341d..2fda595e8f7b 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -1810,7 +1810,7 @@ void ScDocument::SetDocProtection(const ScDocProtection* pProtect)
if (pProtect)
pDocProtection.reset(new ScDocProtection(*pProtect));
else
- pDocProtection.reset(NULL);
+ pDocProtection.reset();
}
bool ScDocument::IsDocProtected() const
diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index c0328ce1fe42..420baa3b3639 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -137,7 +137,7 @@ const OUString* ScDPSaveMember::GetLayoutName() const
void ScDPSaveMember::RemoveLayoutName()
{
- mpLayoutName.reset(NULL);
+ mpLayoutName.reset();
}
void ScDPSaveMember::WriteToSource( const uno::Reference<uno::XInterface>& xMember, sal_Int32 nPosition )
@@ -447,7 +447,7 @@ const OUString* ScDPSaveDimension::GetLayoutName() const
void ScDPSaveDimension::RemoveLayoutName()
{
- mpLayoutName.reset(NULL);
+ mpLayoutName.reset();
}
void ScDPSaveDimension::SetReferenceValue(const sheet::DataPilotFieldReference* pNew)
diff --git a/sc/source/core/data/table5.cxx b/sc/source/core/data/table5.cxx
index 8c8d6bf235ca..e3545f7ac768 100644
--- a/sc/source/core/data/table5.cxx
+++ b/sc/source/core/data/table5.cxx
@@ -1059,7 +1059,7 @@ void ScTable::SetProtection(const ScTableProtection* pProtect)
if (pProtect)
pTabProtection.reset(new ScTableProtection(*pProtect));
else
- pTabProtection.reset(NULL);
+ pTabProtection.reset();
if (IsStreamValid())
SetStreamValid(false);
diff --git a/sc/source/ui/Accessibility/AccessibleText.cxx b/sc/source/ui/Accessibility/AccessibleText.cxx
index 7907bb652293..c8523112fc12 100644
--- a/sc/source/ui/Accessibility/AccessibleText.cxx
+++ b/sc/source/ui/Accessibility/AccessibleText.cxx
@@ -1757,7 +1757,7 @@ SvxTextForwarder* ScAccessibleCsvTextData::GetTextForwarder()
mpTextForwarder.reset( new SvxEditEngineForwarder( *mpEditEngine ) );
}
else
- mpTextForwarder.reset( NULL );
+ mpTextForwarder.reset();
return mpTextForwarder.get();
}
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index c1d20ed23cac..53e6fc14d274 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -499,7 +499,7 @@ private:
void Chart2Positioner::invalidateGlue()
{
meGlue = GLUETYPE_NA;
- mpPositionMap.reset(NULL);
+ mpPositionMap.reset();
}
void Chart2Positioner::glueState()
@@ -708,7 +708,7 @@ void Chart2Positioner::calcGlueState(SCCOL nColSize, SCROW nRowSize)
void Chart2Positioner::createPositionMap()
{
if (meGlue == GLUETYPE_NA && mpPositionMap.get())
- mpPositionMap.reset(NULL);
+ mpPositionMap.reset();
if (mpPositionMap.get())
return;
@@ -2771,7 +2771,7 @@ void ScChart2DataSequence::StopListeningToAllExternalRefs()
for (; itr != itrEnd; ++itr)
pRefMgr->removeLinkListener(*itr, m_pExtRefListener.get());
- m_pExtRefListener.reset(NULL);
+ m_pExtRefListener.reset();
}
void ScChart2DataSequence::CopyData(const ScChart2DataSequence& r)
diff --git a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
index 30f7fdeba517..02ca215a3996 100644
--- a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
+++ b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
@@ -171,7 +171,7 @@ void SAL_CALL AccessibleSlideSorterView::disposing (void)
comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing( mnClientId, *this );
mnClientId = 0;
}
- mpImpl.reset(NULL);
+ mpImpl.reset();
}
diff --git a/sd/source/ui/tools/PreviewRenderer.cxx b/sd/source/ui/tools/PreviewRenderer.cxx
index aa40d46e1cbd..21642e5d0459 100644
--- a/sd/source/ui/tools/PreviewRenderer.cxx
+++ b/sd/source/ui/tools/PreviewRenderer.cxx
@@ -441,7 +441,7 @@ void PreviewRenderer::ProvideView (DrawDocShell* pDocShell)
if (pDocShell != mpDocShellOfView)
{
// Destroy the view that is connected to the current doc shell.
- mpView.reset (NULL);
+ mpView.reset();
// Switch our attention, i.e. listening for DYING events, to
// the new doc shell.
@@ -543,7 +543,7 @@ void PreviewRenderer::Notify(SfxBroadcaster&, const SfxHint& rHint)
// has to be destroyed as well. The next call to
// ProvideView will create a new one (for another
// doc shell, of course.)
- mpView.reset (NULL);
+ mpView.reset();
mpDocShellOfView = NULL;
}
}
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index 4d027bbb66cb..7c75ca08aa76 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -674,7 +674,7 @@ void SvxRuler::UpdateFrame(const SvxLongLRSpaceItem *pItem) // new value LRSpace
if(pItem)
mpLRSpaceItem.reset(new SvxLongLRSpaceItem(*pItem));
else
- mpLRSpaceItem.reset(NULL);
+ mpLRSpaceItem.reset();
StartListening_Impl();
}
}
@@ -687,7 +687,7 @@ void SvxRuler::UpdateFrameMinMax(const SfxRectangleItem *pItem) // value for Min
if(pItem)
mpMinMaxItem.reset(new SfxRectangleItem(*pItem));
else
- mpMinMaxItem.reset(NULL);
+ mpMinMaxItem.reset();
}
}
@@ -700,7 +700,7 @@ void SvxRuler::UpdateFrame(const SvxLongULSpaceItem *pItem) // new value
if(pItem)
mpULSpaceItem.reset(new SvxLongULSpaceItem(*pItem));
else
- mpULSpaceItem.reset(NULL);
+ mpULSpaceItem.reset();
StartListening_Impl();
}
}
@@ -746,7 +746,7 @@ void SvxRuler::Update(
//if mpColumnItem is already set with one of the ids then a NULL pItem argument
//must not delete it
{
- mpColumnItem.reset(NULL);
+ mpColumnItem.reset();
mpRulerImpl->bIsTableRows = sal_False;
}
StartListening_Impl();
@@ -908,7 +908,7 @@ void SvxRuler::UpdatePara(const SvxLRSpaceItem *pItem) // new value of paragraph
if(pItem)
mpParaItem.reset(new SvxLRSpaceItem(*pItem));
else
- mpParaItem.reset(NULL);
+ mpParaItem.reset();
StartListening_Impl();
}
}
@@ -921,7 +921,7 @@ void SvxRuler::UpdateParaBorder(const SvxLRSpaceItem * pItem )
if(pItem)
mpParaBorderItem.reset(new SvxLRSpaceItem(*pItem));
else
- mpParaBorderItem.reset(NULL);
+ mpParaBorderItem.reset();
StartListening_Impl();
}
}
@@ -989,7 +989,7 @@ void SvxRuler::Update(const SvxPagePosSizeItem *pItem) // new value of page attr
if(pItem)
mpPagePosItem.reset(new SvxPagePosSizeItem(*pItem));
else
- mpPagePosItem.reset(NULL);
+ mpPagePosItem.reset();
StartListening_Impl();
}
}
@@ -1185,7 +1185,7 @@ void SvxRuler::Update(const SvxTabStopItem *pItem) // new value for tabs
}
else
{
- mpTabStopItem.reset(NULL);
+ mpTabStopItem.reset();
}
StartListening_Impl();
}
@@ -1199,7 +1199,7 @@ void SvxRuler::Update(const SvxObjectItem *pItem) // new value for objects
if(pItem)
mpObjectItem.reset(new SvxObjectItem(*pItem));
else
- mpObjectItem.reset(NULL);
+ mpObjectItem.reset();
StartListening_Impl();
}
}
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index 68a7a3638b5d..810838a4e265 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -2731,7 +2731,7 @@ void FormController::unload() throw( RuntimeException )
m_bCanInsert = m_bCanUpdate = m_bCycle = sal_False;
m_bCurrentRecordModified = m_bCurrentRecordNew = m_bLocked = sal_False;
- m_pColumnInfoCache.reset( NULL );
+ m_pColumnInfoCache.reset();
}
// -----------------------------------------------------------------------------
diff --git a/toolkit/source/helper/formpdfexport.cxx b/toolkit/source/helper/formpdfexport.cxx
index 2ad6900cfc8e..8fc3b9695806 100644
--- a/toolkit/source/helper/formpdfexport.cxx
+++ b/toolkit/source/helper/formpdfexport.cxx
@@ -257,7 +257,7 @@ namespace toolkitform
void TOOLKIT_DLLPUBLIC describePDFControl( const Reference< XControl >& _rxControl,
::std::auto_ptr< ::vcl::PDFWriter::AnyWidget >& _rpDescriptor, ::vcl::PDFExtOutDevData& i_pdfExportData ) SAL_THROW(())
{
- _rpDescriptor.reset( NULL );
+ _rpDescriptor.reset();
OSL_ENSURE( _rxControl.is(), "describePDFControl: invalid (NULL) control!" );
if ( !_rxControl.is() )
return;
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index 933bd2b13221..d3246df5d134 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -280,7 +280,7 @@ bool QuartzSalBitmap::AllocateUserData()
catch( const std::bad_alloc& )
{
OSL_FAIL( "vcl::QuartzSalBitmap::AllocateUserData: bad alloc" );
- maUserBuffer.reset( static_cast<sal_uInt8*>(NULL) );
+ maUserBuffer.reset();
mnBytesPerRow = 0;
}