[Libreoffice-commits] core.git: sc/inc sc/qa sc/source sd/inc sd/source sd/workben svx/inc svx/source xmloff/inc
Caolán McNamara
caolanm at redhat.com
Thu Sep 17 11:00:58 PDT 2015
sc/inc/cellsuno.hxx | 4
sc/inc/chart2uno.hxx | 11 -
sc/inc/chartlis.hxx | 9
sc/inc/clipcontext.hxx | 4
sc/inc/colorscale.hxx | 18 -
sc/inc/conditio.hxx | 6
sc/inc/dbdata.hxx | 10 -
sc/inc/dociter.hxx | 7
sc/inc/document.hxx | 30 +--
sc/inc/documentstreamaccess.hxx | 4
sc/inc/dpcache.hxx | 6
sc/inc/dpfilteredcache.hxx | 4
sc/inc/dpgroup.hxx | 8
sc/inc/dpobject.hxx | 4
sc/inc/dpsave.hxx | 12 -
sc/inc/dptabsrc.hxx | 8
sc/inc/editdataarray.hxx | 6
sc/inc/externalrefmgr.hxx | 6
sc/inc/fielduno.hxx | 4
sc/inc/importfilterdata.hxx | 4
sc/inc/listenercontext.hxx | 13 -
sc/inc/pch/precompiled_sc.hxx | 2
sc/inc/pch/precompiled_scfilt.hxx | 2
sc/inc/pch/precompiled_scui.hxx | 1
sc/inc/pch/precompiled_vbaobj.hxx | 1
sc/inc/postit.hxx | 4
sc/inc/simpleformulacalc.hxx | 4
sc/inc/simplerangelist.hxx | 7
sc/inc/table.hxx | 16 -
sc/inc/tabprotection.hxx | 6
sc/qa/unit/helper/qahelper.cxx | 4
sc/qa/unit/helper/qahelper.hxx | 4
sc/qa/unit/helper/xpath.cxx | 4
sc/qa/unit/ucalc.cxx | 4
sc/qa/unit/ucalc_formula.cxx | 8
sc/qa/unit/ucalc_sharedformula.cxx | 2
sc/source/core/data/attarray.cxx | 16 -
sc/source/core/data/clipcontext.cxx | 2
sc/source/core/data/column.cxx | 14 -
sc/source/core/data/column2.cxx | 6
sc/source/core/data/column3.cxx | 4
sc/source/core/data/column4.cxx | 2
sc/source/core/data/conditio.cxx | 6
sc/source/core/data/documen2.cxx | 2
sc/source/core/data/documen3.cxx | 4
sc/source/core/data/documen4.cxx | 2
sc/source/core/data/documen8.cxx | 8
sc/source/core/data/document.cxx | 10 -
sc/source/core/data/document10.cxx | 6
sc/source/core/data/documentimport.cxx | 6
sc/source/core/data/dpgroup.cxx | 2
sc/source/core/data/dpobject.cxx | 2
sc/source/core/data/dpsave.cxx | 72 +++----
sc/source/core/data/dptabres.cxx | 6
sc/source/core/data/dptabsrc.cxx | 70 +++----
sc/source/core/data/formulacell.cxx | 8
sc/source/core/data/funcdesc.cxx | 6
sc/source/core/data/listenercontext.cxx | 4
sc/source/core/data/table1.cxx | 60 +++---
sc/source/core/data/table2.cxx | 2
sc/source/core/data/table3.cxx | 15 -
sc/source/core/data/table4.cxx | 4
sc/source/core/data/validat.cxx | 6
sc/source/core/opencl/formulagroupcl.cxx | 15 -
sc/source/core/opencl/opbase.hxx | 6
sc/source/core/tool/chartlis.cxx | 16 -
sc/source/core/tool/chgtrack.cxx | 6
sc/source/core/tool/interpr1.cxx | 2
sc/source/core/tool/interpr7.cxx | 14 -
sc/source/core/tool/rangenam.cxx | 8
sc/source/core/tool/reftokenhelper.cxx | 4
sc/source/filter/dif/difimp.cxx | 4
sc/source/filter/excel/excel.cxx | 4
sc/source/filter/excel/read.cxx | 6
sc/source/filter/excel/xechart.cxx | 4
sc/source/filter/excel/xecontent.cxx | 6
sc/source/filter/excel/xeformula.cxx | 14 -
sc/source/filter/excel/xelink.cxx | 4
sc/source/filter/excel/xestyle.cxx | 2
sc/source/filter/excel/xichart.cxx | 2
sc/source/filter/excel/xiescher.cxx | 7
sc/source/filter/excel/xilink.cxx | 2
sc/source/filter/excel/xiname.cxx | 10 -
sc/source/filter/excel/xlpivot.cxx | 6
sc/source/filter/html/htmlpars.cxx | 33 +--
sc/source/filter/inc/autofilterbuffer.hxx | 2
sc/source/filter/inc/biffcodec.hxx | 2
sc/source/filter/inc/excelhandlers.hxx | 4
sc/source/filter/inc/formulabase.hxx | 4
sc/source/filter/inc/ftools.hxx | 1
sc/source/filter/inc/htmlexp.hxx | 4
sc/source/filter/inc/imp_op.hxx | 6
sc/source/filter/inc/ooxformulaparser.hxx | 4
sc/source/filter/inc/workbookhelper.hxx | 4
sc/source/filter/inc/worksheethelper.hxx | 2
sc/source/filter/inc/xecontent.hxx | 12 -
sc/source/filter/inc/xeformula.hxx | 4
sc/source/filter/inc/xelink.hxx | 4
sc/source/filter/inc/xename.hxx | 4
sc/source/filter/inc/xestream.hxx | 2
sc/source/filter/inc/xestyle.hxx | 21 +-
sc/source/filter/inc/xichart.hxx | 68 +++---
sc/source/filter/inc/xiescher.hxx | 49 ++---
sc/source/filter/inc/xiformula.hxx | 4
sc/source/filter/inc/xihelper.hxx | 4
sc/source/filter/inc/xiname.hxx | 4
sc/source/filter/inc/xiroot.hxx | 50 ++---
sc/source/filter/inc/xistream.hxx | 4
sc/source/filter/inc/xistyle.hxx | 4
sc/source/filter/inc/xlformula.hxx | 6
sc/source/filter/inc/xlpage.hxx | 3
sc/source/filter/inc/xlpivot.hxx | 4
sc/source/filter/inc/xlroot.hxx | 18 -
sc/source/filter/inc/xlview.hxx | 6
sc/source/filter/oox/formulabuffer.cxx | 6
sc/source/filter/oox/revisionfragment.cxx | 4
sc/source/filter/oox/stylesbuffer.cxx | 2
sc/source/filter/oox/workbookfragment.cxx | 6
sc/source/filter/oox/workbookhelper.cxx | 6
sc/source/filter/orcus/interface.cxx | 2
sc/source/filter/rtf/eeimpars.cxx | 2
sc/source/filter/xcl97/xcl97rec.cxx | 6
sc/source/filter/xml/XMLExportIterator.hxx | 4
sc/source/filter/xml/XMLStylesImportHelper.hxx | 20 +-
sc/source/filter/xml/xmlbodyi.cxx | 4
sc/source/filter/xml/xmlcelli.cxx | 4
sc/source/filter/xml/xmlcelli.hxx | 4
sc/source/filter/xml/xmldpimp.hxx | 2
sc/source/filter/xml/xmldrani.hxx | 4
sc/source/filter/xml/xmlexprt.cxx | 6
sc/source/filter/xml/xmlexprt.hxx | 8
sc/source/filter/xml/xmlimprt.cxx | 2
sc/source/filter/xml/xmlimprt.hxx | 12 -
sc/source/filter/xml/xmlnexpi.hxx | 4
sc/source/filter/xml/xmlsubti.cxx | 6
sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx | 2
sc/source/ui/StatisticsDialogs/ExponentialSmoothingDialog.cxx | 2
sc/source/ui/StatisticsDialogs/MovingAverageDialog.cxx | 2
sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx | 4
sc/source/ui/app/inputhdl.cxx | 2
sc/source/ui/app/uiitems.cxx | 20 +-
sc/source/ui/cctrl/checklistmenu.cxx | 46 ++--
sc/source/ui/condformat/condformatdlgentry.cxx | 2
sc/source/ui/dbgui/PivotLayoutTreeList.cxx | 2
sc/source/ui/dbgui/PivotLayoutTreeListData.cxx | 2
sc/source/ui/dbgui/pvfundlg.cxx | 1
sc/source/ui/docshell/docfunc.cxx | 14 -
sc/source/ui/docshell/docfuncutil.cxx | 2
sc/source/ui/docshell/docsh.cxx | 4
sc/source/ui/docshell/docsh3.cxx | 4
sc/source/ui/docshell/docsh4.cxx | 10 -
sc/source/ui/docshell/documentlinkmgr.cxx | 8
sc/source/ui/docshell/externalrefmgr.cxx | 6
sc/source/ui/docshell/impex.cxx | 8
sc/source/ui/drawfunc/drawsh.cxx | 16 -
sc/source/ui/drawfunc/drawsh5.cxx | 6
sc/source/ui/drawfunc/drtxtob.cxx | 4
sc/source/ui/drawfunc/drtxtob1.cxx | 8
sc/source/ui/drawfunc/fuins2.cxx | 4
sc/source/ui/drawfunc/mediash.cxx | 4
sc/source/ui/formdlg/formula.cxx | 2
sc/source/ui/inc/checklistmenu.hxx | 16 -
sc/source/ui/inc/condformatdlgentry.hxx | 2
sc/source/ui/inc/datastream.hxx | 1
sc/source/ui/inc/docfuncutil.hxx | 4
sc/source/ui/inc/docsh.hxx | 4
sc/source/ui/inc/filtdlg.hxx | 1
sc/source/ui/inc/pvfundlg.hxx | 8
sc/source/ui/inc/retypepassdlg.hxx | 6
sc/source/ui/inc/tabview.hxx | 1
sc/source/ui/inc/uiitems.hxx | 4
sc/source/ui/inc/undoblk.hxx | 13 -
sc/source/ui/inc/undocell.hxx | 11 -
sc/source/ui/inc/undodat.hxx | 4
sc/source/ui/inc/undotab.hxx | 19 +
sc/source/ui/inc/viewdata.hxx | 4
sc/source/ui/inc/xmlsourcedlg.hxx | 4
sc/source/ui/miscdlgs/anyrefdg.cxx | 4
sc/source/ui/miscdlgs/scuiautofmt.cxx | 1
sc/source/ui/miscdlgs/tabbgcolordlg.cxx | 2
sc/source/ui/pagedlg/scuitphfedit.cxx | 12 -
sc/source/ui/pagedlg/tphf.cxx | 4
sc/source/ui/pagedlg/tphfedit.cxx | 4
sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx | 8
sc/source/ui/sidebar/CellBorderStyleControl.cxx | 6
sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx | 1
sc/source/ui/undo/undoblk.cxx | 4
sc/source/ui/undo/undoblk3.cxx | 2
sc/source/ui/undo/undocell.cxx | 2
sc/source/ui/undo/undotab.cxx | 8
sc/source/ui/unoobj/cellsuno.cxx | 21 +-
sc/source/ui/unoobj/chart2uno.cxx | 58 ++---
sc/source/ui/unoobj/condformatuno.cxx | 4
sc/source/ui/unoobj/fielduno.cxx | 20 +-
sc/source/ui/unoobj/filtuno.cxx | 10 -
sc/source/ui/vba/vbaname.cxx | 4
sc/source/ui/vba/vbanames.cxx | 4
sc/source/ui/vba/vbarange.cxx | 6
sc/source/ui/view/cellsh1.cxx | 98 +++++-----
sc/source/ui/view/cellsh2.cxx | 10 -
sc/source/ui/view/cellsh3.cxx | 20 +-
sc/source/ui/view/dbfunc3.cxx | 10 -
sc/source/ui/view/editsh.cxx | 8
sc/source/ui/view/formatsh.cxx | 14 -
sc/source/ui/view/gridwin.cxx | 10 -
sc/source/ui/view/gridwin4.cxx | 2
sc/source/ui/view/output.cxx | 8
sc/source/ui/view/output2.cxx | 8
sc/source/ui/view/pivotsh.cxx | 4
sc/source/ui/view/preview.cxx | 4
sc/source/ui/view/prevwsh.cxx | 4
sc/source/ui/view/printfun.cxx | 8
sc/source/ui/view/scextopt.cxx | 6
sc/source/ui/view/spelleng.cxx | 6
sc/source/ui/view/tabvwsh3.cxx | 6
sc/source/ui/view/tabvwsha.cxx | 10 -
sc/source/ui/view/tabvwshf.cxx | 20 +-
sc/source/ui/view/tabvwshh.cxx | 2
sc/source/ui/view/viewfun2.cxx | 11 -
sc/source/ui/view/viewfun3.cxx | 8
sc/source/ui/view/viewfun4.cxx | 18 +
sc/source/ui/view/viewfun5.cxx | 10 -
sc/source/ui/view/viewfunc.cxx | 6
sc/source/ui/view/viewutil.cxx | 4
sd/inc/CustomAnimationEffect.hxx | 13 -
sd/inc/CustomAnimationPreset.hxx | 6
sd/inc/Outliner.hxx | 6
sd/inc/OutlinerIterator.hxx | 8
sd/inc/TransitionPreset.hxx | 4
sd/inc/pch/precompiled_sd.hxx | 5
sd/inc/pch/precompiled_sdui.hxx | 1
sd/inc/sdpage.hxx | 14 +
sd/inc/stlsheet.hxx | 4
sd/inc/undoanim.hxx | 8
sd/source/core/EffectMigration.cxx | 4
sd/source/core/stlsheet.cxx | 4
sd/source/core/undoanim.cxx | 4
sd/source/filter/eppt/epptooxml.hxx | 2
sd/source/filter/eppt/pptexanimations.hxx | 4
sd/source/filter/eppt/text.hxx | 4
sd/source/filter/html/HtmlOptionsDialog.cxx | 4
sd/source/filter/html/buttonset.cxx | 6
sd/source/filter/html/htmlex.hxx | 4
sd/source/filter/ppt/pptin.hxx | 4
sd/source/filter/ppt/pptinanimations.cxx | 5
sd/source/ui/animations/CustomAnimationDialog.cxx | 2
sd/source/ui/animations/CustomAnimationList.hxx | 2
sd/source/ui/animations/CustomAnimationPane.cxx | 8
sd/source/ui/animations/SlideTransitionPane.cxx | 2
sd/source/ui/annotations/annotationmanager.cxx | 10 -
sd/source/ui/annotations/annotationwindow.cxx | 4
sd/source/ui/app/sdmod1.cxx | 13 -
sd/source/ui/app/sdxfer.cxx | 6
sd/source/ui/dlg/RemoteDialogClientBox.cxx | 10 -
sd/source/ui/dlg/RemoteDialogClientBox.hxx | 10 -
sd/source/ui/dlg/sdpreslt.cxx | 2
sd/source/ui/dlg/sdtreelb.cxx | 2
sd/source/ui/docshell/docshel3.cxx | 4
sd/source/ui/docshell/docshel4.cxx | 2
sd/source/ui/docshell/docshell.cxx | 2
sd/source/ui/framework/configuration/ChangeRequestQueueProcessor.cxx | 2
sd/source/ui/framework/configuration/ChangeRequestQueueProcessor.hxx | 6
sd/source/ui/framework/configuration/ConfigurationController.cxx | 14 -
sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx | 4
sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.hxx | 10 -
sd/source/ui/framework/configuration/ConfigurationUpdater.cxx | 8
sd/source/ui/framework/configuration/ConfigurationUpdater.hxx | 12 -
sd/source/ui/framework/factories/BasicPaneFactory.hxx | 5
sd/source/ui/framework/factories/BasicViewFactory.cxx | 32 +--
sd/source/ui/framework/factories/BasicViewFactory.hxx | 19 +
sd/source/ui/framework/factories/FullScreenPane.hxx | 2
sd/source/ui/framework/factories/ViewShellWrapper.cxx | 4
sd/source/ui/framework/module/CenterViewFocusModule.cxx | 2
sd/source/ui/framework/module/ResourceManager.hxx | 4
sd/source/ui/framework/module/ShellStackGuard.hxx | 4
sd/source/ui/framework/module/ToolBarModule.cxx | 6
sd/source/ui/framework/module/ToolBarModule.hxx | 4
sd/source/ui/framework/tools/FrameworkHelper.cxx | 26 +-
sd/source/ui/func/fuarea.cxx | 4
sd/source/ui/func/fubullet.cxx | 4
sd/source/ui/func/fuchar.cxx | 4
sd/source/ui/func/fuconbez.cxx | 2
sd/source/ui/func/fuconnct.cxx | 4
sd/source/ui/func/fucopy.cxx | 6
sd/source/ui/func/fucushow.cxx | 4
sd/source/ui/func/fuinsert.cxx | 6
sd/source/ui/func/fuinsfil.cxx | 12 -
sd/source/ui/func/fuline.cxx | 6
sd/source/ui/func/fulinend.cxx | 4
sd/source/ui/func/fulink.cxx | 4
sd/source/ui/func/fumeasur.cxx | 4
sd/source/ui/func/fumorph.cxx | 4
sd/source/ui/func/fuoaprms.cxx | 4
sd/source/ui/func/fuolbull.cxx | 8
sd/source/ui/func/fuoltext.cxx | 4
sd/source/ui/func/fupage.cxx | 6
sd/source/ui/func/fuparagr.cxx | 4
sd/source/ui/func/fuprlout.cxx | 6
sd/source/ui/func/fuprobjs.cxx | 4
sd/source/ui/func/fuscale.cxx | 6
sd/source/ui/func/fusldlg.cxx | 4
sd/source/ui/func/fusnapln.cxx | 4
sd/source/ui/func/futempl.cxx | 6
sd/source/ui/func/futransf.cxx | 6
sd/source/ui/func/futxtatt.cxx | 4
sd/source/ui/func/fuvect.cxx | 4
sd/source/ui/inc/DocumentRenderer.hxx | 4
sd/source/ui/inc/OutlinerIteratorImpl.hxx | 16 -
sd/source/ui/inc/PaneDockingWindow.hxx | 3
sd/source/ui/inc/RemoteServer.hxx | 11 -
sd/source/ui/inc/SlideSorter.hxx | 21 +-
sd/source/ui/inc/SlideSorterViewShell.hxx | 14 -
sd/source/ui/inc/TemplateScanner.hxx | 13 -
sd/source/ui/inc/ToolBarManager.hxx | 18 +
sd/source/ui/inc/ViewShell.hxx | 1
sd/source/ui/inc/ViewShellBase.hxx | 15 -
sd/source/ui/inc/ViewShellImplementation.hxx | 12 -
sd/source/ui/inc/ViewShellManager.hxx | 7
sd/source/ui/inc/ViewTabBar.hxx | 3
sd/source/ui/inc/framework/Configuration.hxx | 4
sd/source/ui/inc/framework/ConfigurationController.hxx | 5
sd/source/ui/inc/framework/FrameworkHelper.hxx | 17 +
sd/source/ui/inc/framework/ModuleController.hxx | 6
sd/source/ui/inc/framework/Pane.hxx | 3
sd/source/ui/inc/framework/PresentationFactory.hxx | 3
sd/source/ui/inc/framework/ResourceId.hxx | 4
sd/source/ui/inc/framework/ViewShellWrapper.hxx | 10 -
sd/source/ui/inc/pubdlg.hxx | 4
sd/source/ui/inc/sdtreelb.hxx | 2
sd/source/ui/inc/sdxfer.hxx | 6
sd/source/ui/inc/slideshow.hxx | 4
sd/source/ui/inc/taskpane/ToolPanelViewShell.hxx | 7
sd/source/ui/inc/tools/PropertySet.hxx | 4
sd/source/ui/inc/tools/SdGlobalResourceContainer.hxx | 3
sd/source/ui/inc/tools/TimerBasedTaskExecution.hxx | 16 -
sd/source/ui/presenter/CanvasUpdateRequester.cxx | 4
sd/source/ui/presenter/CanvasUpdateRequester.hxx | 6
sd/source/ui/presenter/PresenterCanvas.hxx | 4
sd/source/ui/presenter/PresenterPreviewCache.cxx | 6
sd/source/ui/presenter/PresenterPreviewCache.hxx | 6
sd/source/ui/presenter/PresenterTextView.hxx | 4
sd/source/ui/remotecontrol/BluetoothServer.cxx | 7
sd/source/ui/remotecontrol/BluetoothServer.hxx | 5
sd/source/ui/remotecontrol/Server.cxx | 14 -
sd/source/ui/sidebar/AllMasterPagesSelector.cxx | 4
sd/source/ui/sidebar/AllMasterPagesSelector.hxx | 2
sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx | 12 -
sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx | 2
sd/source/ui/sidebar/DocumentHelper.cxx | 4
sd/source/ui/sidebar/DocumentHelper.hxx | 6
sd/source/ui/sidebar/LayoutMenu.cxx | 2
sd/source/ui/sidebar/MasterPageContainer.cxx | 85 ++++----
sd/source/ui/sidebar/MasterPageContainer.hxx | 8
sd/source/ui/sidebar/MasterPageContainerFiller.cxx | 10 -
sd/source/ui/sidebar/MasterPageContainerQueue.cxx | 6
sd/source/ui/sidebar/MasterPageContainerQueue.hxx | 11 -
sd/source/ui/sidebar/MasterPageDescriptor.cxx | 6
sd/source/ui/sidebar/MasterPageDescriptor.hxx | 12 -
sd/source/ui/sidebar/MasterPagesSelector.cxx | 4
sd/source/ui/sidebar/MasterPagesSelector.hxx | 4
sd/source/ui/sidebar/PanelBase.hxx | 2
sd/source/ui/sidebar/PanelFactory.hxx | 5
sd/source/ui/sidebar/RecentMasterPagesSelector.cxx | 6
sd/source/ui/sidebar/RecentMasterPagesSelector.hxx | 4
sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx | 6
sd/source/ui/sidebar/RecentlyUsedMasterPages.hxx | 2
sd/source/ui/slideshow/SlideShowRestarter.cxx | 2
sd/source/ui/slideshow/SlideShowRestarter.hxx | 6
sd/source/ui/slideshow/slideshow.cxx | 12 -
sd/source/ui/slideshow/slideshowimpl.hxx | 4
sd/source/ui/slidesorter/cache/SlsBitmapCache.cxx | 10 -
sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx | 7
sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx | 16 -
sd/source/ui/slidesorter/cache/SlsBitmapCompressor.hxx | 12 -
sd/source/ui/slidesorter/cache/SlsBitmapFactory.hxx | 2
sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx | 8
sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx | 8
sd/source/ui/slidesorter/cache/SlsCacheConfiguration.hxx | 7
sd/source/ui/slidesorter/cache/SlsGenericPageCache.cxx | 2
sd/source/ui/slidesorter/cache/SlsGenericPageCache.hxx | 6
sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx | 40 ++--
sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx | 4
sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx | 6
sd/source/ui/slidesorter/cache/SlsRequestFactory.cxx | 2
sd/source/ui/slidesorter/cache/SlsRequestQueue.hxx | 4
sd/source/ui/slidesorter/controller/SlideSorterController.cxx | 14 -
sd/source/ui/slidesorter/controller/SlsAnimator.cxx | 2
sd/source/ui/slidesorter/controller/SlsClipboard.cxx | 27 +-
sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx | 4
sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx | 2
sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx | 4
sd/source/ui/slidesorter/controller/SlsListener.cxx | 2
sd/source/ui/slidesorter/controller/SlsListener.hxx | 4
sd/source/ui/slidesorter/controller/SlsPageSelector.cxx | 10 -
sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx | 22 +-
sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 14 -
sd/source/ui/slidesorter/controller/SlsTransferableData.cxx | 10 -
sd/source/ui/slidesorter/inc/cache/SlsCacheContext.hxx | 6
sd/source/ui/slidesorter/inc/cache/SlsPageCache.hxx | 4
sd/source/ui/slidesorter/inc/cache/SlsPageCacheManager.hxx | 25 +-
sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx | 32 +--
sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx | 8
sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx | 2
sd/source/ui/slidesorter/inc/controller/SlsInsertionIndicatorHandler.hxx | 10 -
sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx | 4
sd/source/ui/slidesorter/inc/controller/SlsSelectionFunction.hxx | 6
sd/source/ui/slidesorter/inc/controller/SlsSelectionManager.hxx | 6
sd/source/ui/slidesorter/inc/controller/SlsSelectionObserver.hxx | 4
sd/source/ui/slidesorter/inc/controller/SlsTransferableData.hxx | 2
sd/source/ui/slidesorter/inc/model/SlsSharedPageDescriptor.hxx | 4
sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx | 19 +
sd/source/ui/slidesorter/inc/view/SlsFontProvider.hxx | 4
sd/source/ui/slidesorter/inc/view/SlsILayerPainter.hxx | 6
sd/source/ui/slidesorter/inc/view/SlsInsertAnimator.hxx | 4
sd/source/ui/slidesorter/inc/view/SlsInsertionIndicatorOverlay.hxx | 7
sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx | 6
sd/source/ui/slidesorter/inc/view/SlsPageObjectLayouter.hxx | 2
sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx | 16 -
sd/source/ui/slidesorter/inc/view/SlsTheme.hxx | 9
sd/source/ui/slidesorter/shell/SlideSorter.cxx | 12 -
sd/source/ui/slidesorter/shell/SlideSorterService.hxx | 7
sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx | 34 +--
sd/source/ui/slidesorter/view/SlideSorterView.cxx | 12 -
sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx | 28 +-
sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx | 14 -
sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx | 6
sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx | 8
sd/source/ui/slidesorter/view/SlsLayouter.cxx | 16 -
sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx | 6
sd/source/ui/slidesorter/view/SlsTheme.cxx | 8
sd/source/ui/slidesorter/view/SlsViewCacheContext.cxx | 4
sd/source/ui/slidesorter/view/SlsViewCacheContext.hxx | 2
sd/source/ui/table/TableDesignPane.cxx | 12 -
sd/source/ui/table/TableDesignPane.hxx | 2
sd/source/ui/table/tablefunction.cxx | 4
sd/source/ui/table/tableobjectbar.cxx | 4
sd/source/ui/tools/PreviewRenderer.cxx | 4
sd/source/ui/tools/SdGlobalResourceContainer.cxx | 4
sd/source/ui/tools/TimerBasedTaskExecution.cxx | 18 -
sd/source/ui/unoidl/DrawController.cxx | 10 -
sd/source/ui/unoidl/facreg.cxx | 8
sd/source/ui/view/DocumentRenderer.cxx | 72 +++----
sd/source/ui/view/MediaObjectBar.cxx | 6
sd/source/ui/view/Outliner.cxx | 74 +++----
sd/source/ui/view/OutlinerIterator.cxx | 30 +--
sd/source/ui/view/ToolBarManager.cxx | 42 ++--
sd/source/ui/view/ViewShellBase.cxx | 38 +--
sd/source/ui/view/ViewShellImplementation.cxx | 10 -
sd/source/ui/view/drtxtob1.cxx | 8
sd/source/ui/view/drviews2.cxx | 26 +-
sd/source/ui/view/drviews3.cxx | 6
sd/source/ui/view/drviews4.cxx | 6
sd/source/ui/view/drviews5.cxx | 2
sd/source/ui/view/drviews9.cxx | 4
sd/source/ui/view/drviewsa.cxx | 4
sd/source/ui/view/drviewsf.cxx | 6
sd/source/ui/view/outlnvs2.cxx | 12 -
sd/source/ui/view/outlnvsh.cxx | 6
sd/source/ui/view/sdview.cxx | 8
sd/source/ui/view/sdview2.cxx | 4
sd/source/ui/view/sdview3.cxx | 6
sd/source/ui/view/viewoverlaymanager.cxx | 2
sd/source/ui/view/viewshel.cxx | 4
sd/workben/custompanel/ctp_panel.hxx | 2
svx/inc/GalleryControl.hxx | 2
svx/inc/pch/precompiled_svx.hxx | 2
svx/inc/pch/precompiled_svxcore.hxx | 2
svx/source/customshapes/EnhancedCustomShape2d.cxx | 1
svx/source/dialog/docrecovery.cxx | 1
svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx | 1
svx/source/sidebar/area/AreaPropertyPanel.hxx | 1
svx/source/sidebar/graphic/GraphicPropertyPanel.hxx | 1
svx/source/sidebar/possize/PosSizePropertyPanel.hxx | 1
svx/source/sidebar/shadow/ShadowPropertyPanel.hxx | 1
svx/source/sidebar/styles/StylesPropertyPanel.hxx | 1
svx/source/table/tablelayouter.hxx | 1
svx/source/unodraw/recoveryui.cxx | 1
xmloff/inc/pch/precompiled_xo.hxx | 1
478 files changed, 2079 insertions(+), 1960 deletions(-)
New commits:
commit d030c4a2a54418b17e87f837092a33eae21f0588
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Sep 17 18:59:32 2015 +0100
revert for mac and win unit case crashes after boost->std
Change-Id: I82c7084f203a834c2d42f9527705288e6036019b
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index f36c3cf..d721b29 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -89,8 +89,8 @@
#include <com/sun/star/sheet/XExternalSheetName.hpp>
#include <com/sun/star/document/XEventsSupplier.hpp>
#include <cppuhelper/implbase.hxx>
+#include <boost/scoped_ptr.hpp>
-#include <memory>
#include <vector>
class ScDocShell;
@@ -506,7 +506,7 @@ class SC_DLLPUBLIC ScCellRangesObj : public ScCellRangesBase,
{
private:
struct Impl;
- std::unique_ptr<Impl> m_pImpl;
+ ::boost::scoped_ptr<Impl> m_pImpl;
ScCellRangeObj* GetObjectByIndex_Impl(sal_Int32 nIndex) const;
diff --git a/sc/inc/chart2uno.hxx b/sc/inc/chart2uno.hxx
index 54cfd98..68387a6 100644
--- a/sc/inc/chart2uno.hxx
+++ b/sc/inc/chart2uno.hxx
@@ -47,10 +47,11 @@
#include <svl/itemprop.hxx>
#include <list>
-#include <memory>
#include <unordered_set>
#include <vector>
+#include <boost/shared_ptr.hpp>
#include <boost/noncopyable.hpp>
+#include <boost/scoped_ptr.hpp>
class ScDocument;
@@ -452,9 +453,9 @@ private:
bool m_bIncludeHiddenCells;
// internals
- typedef std::unique_ptr<std::vector<ScTokenRef> > TokenListPtr;
- typedef std::unique_ptr<std::vector<sal_uInt32> > RangeIndexMapPtr;
- typedef std::unique_ptr<ExternalRefListener> ExtRefListenerPtr;
+ typedef boost::scoped_ptr<std::vector<ScTokenRef> > TokenListPtr;
+ typedef boost::scoped_ptr<std::vector<sal_uInt32> > RangeIndexMapPtr;
+ typedef boost::scoped_ptr<ExternalRefListener> ExtRefListenerPtr;
sal_Int64 m_nObjectId;
ScDocument* m_pDocument;
@@ -464,7 +465,7 @@ private:
com::sun::star::uno::Reference < com::sun::star::chart2::data::XDataProvider > m_xDataProvider;
SfxItemPropertySet m_aPropSet;
- std::unique_ptr<HiddenRangeListener> m_pHiddenListener;
+ boost::scoped_ptr<HiddenRangeListener> m_pHiddenListener;
ScLinkListener* m_pValueListener;
XModifyListenerArr_Impl m_aValueListeners;
diff --git a/sc/inc/chartlis.hxx b/sc/inc/chartlis.hxx
index b634b91..8b29b99 100644
--- a/sc/inc/chartlis.hxx
+++ b/sc/inc/chartlis.hxx
@@ -27,11 +27,12 @@
#include "token.hxx"
#include "externalrefmgr.hxx"
+#include <vector>
+
+#include <boost/scoped_ptr.hpp>
#include <boost/ptr_container/ptr_map.hpp>
-#include <memory>
#include <unordered_map>
#include <unordered_set>
-#include <vector>
class ScDocument;
class ScChartUnoData;
@@ -61,8 +62,8 @@ public:
private:
- std::unique_ptr<ExternalRefListener> mpExtRefListener;
- std::unique_ptr<std::vector<ScTokenRef> > mpTokens;
+ boost::scoped_ptr<ExternalRefListener> mpExtRefListener;
+ boost::scoped_ptr<std::vector<ScTokenRef> > mpTokens;
OUString maName;
ScChartUnoData* pUnoData;
diff --git a/sc/inc/clipcontext.hxx b/sc/inc/clipcontext.hxx
index 783c6bd..787b964 100644
--- a/sc/inc/clipcontext.hxx
+++ b/sc/inc/clipcontext.hxx
@@ -14,9 +14,9 @@
#include "cellvalue.hxx"
#include <celltextattr.hxx>
-#include <memory>
#include <vector>
#include <boost/noncopyable.hpp>
+#include <boost/scoped_ptr.hpp>
class ScDocument;
class ScColumn;
@@ -31,7 +31,7 @@ class ColumnBlockPositionSet;
class ClipContextBase : boost::noncopyable
{
- std::unique_ptr<ColumnBlockPositionSet> mpSet;
+ boost::scoped_ptr<ColumnBlockPositionSet> mpSet;
ClipContextBase(); // disabled
diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx
index e0884c7..5514e02 100644
--- a/sc/inc/colorscale.hxx
+++ b/sc/inc/colorscale.hxx
@@ -11,6 +11,7 @@
#define INCLUDED_SC_INC_COLORSCALE_HXX
#include <boost/ptr_container/ptr_vector.hpp>
+#include <boost/scoped_ptr.hpp>
#include <formula/grammar.hxx>
#include <tools/color.hxx>
#include "rangelst.hxx"
@@ -19,7 +20,6 @@
#include <svl/listener.hxx>
#include <svl/broadcast.hxx>
-#include <memory>
#include <vector>
//TODO: merge this with conditio.hxx
@@ -50,8 +50,8 @@ class SC_DLLPUBLIC ScColorScaleEntry
private:
double mnVal;
Color maColor;
- std::unique_ptr<ScFormulaCell> mpCell;
- std::unique_ptr<ScFormulaListener> mpListener;
+ boost::scoped_ptr<ScFormulaCell> mpCell;
+ boost::scoped_ptr<ScFormulaListener> mpListener;
ScColorScaleEntryType meType;
public:
@@ -133,7 +133,7 @@ struct SC_DLLPUBLIC ScDataBarFormatData
*
* Default color is 0xFF0000, this value is not set
*/
- std::unique_ptr<Color> mpNegativeColor;
+ boost::scoped_ptr<Color> mpNegativeColor;
/**
* Color of the axis if used
* Default color is black
@@ -177,8 +177,8 @@ struct SC_DLLPUBLIC ScDataBarFormatData
*/
bool mbOnlyBar;
- std::unique_ptr<ScColorScaleEntry> mpUpperLimit;
- std::unique_ptr<ScColorScaleEntry> mpLowerLimit;
+ boost::scoped_ptr<ScColorScaleEntry> mpUpperLimit;
+ boost::scoped_ptr<ScColorScaleEntry> mpLowerLimit;
};
enum ScIconSetType
@@ -242,7 +242,7 @@ private:
{
std::vector<double> maValues;
};
- mutable std::unique_ptr<ScColorFormatCache> mpCache;
+ mutable boost::scoped_ptr<ScColorFormatCache> mpCache;
};
typedef std::vector<std::unique_ptr<ScColorScaleEntry>> ScColorScaleEntries;
@@ -323,7 +323,7 @@ private:
double getMin(double nMin, double nMax) const;
double getMax(double nMin, double nMax) const;
- std::unique_ptr<ScDataBarFormatData> mpFormatData;
+ boost::scoped_ptr<ScDataBarFormatData> mpFormatData;
};
struct ScIconSetFormatData
@@ -396,7 +396,7 @@ private:
double GetMaxValue() const;
double CalcValue(double nMin, double nMax, ScIconSetFormat::const_iterator& itr) const;
- std::unique_ptr<ScIconSetFormatData> mpFormatData;
+ boost::scoped_ptr<ScIconSetFormatData> mpFormatData;
};
#endif
diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx
index 839c5b0..5893585 100644
--- a/sc/inc/conditio.hxx
+++ b/sc/inc/conditio.hxx
@@ -32,10 +32,10 @@
#include <tools/date.hxx>
#include <map>
-#include <memory>
#include <set>
#include <boost/noncopyable.hpp>
+#include <boost/scoped_ptr.hpp>
class ScFormulaCell;
class ScTokenArray;
@@ -280,7 +280,7 @@ private:
nValueItems(0) {}
};
- mutable std::unique_ptr<ScConditionEntryCache> mpCache;
+ mutable boost::scoped_ptr<ScConditionEntryCache> mpCache;
};
// single condition entry for conditional formatting
@@ -370,7 +370,7 @@ public:
private:
condformat::ScCondFormatDateType meType;
- mutable std::unique_ptr<Date> mpCache;
+ mutable boost::scoped_ptr<Date> mpCache;
OUString maStyleName;
};
diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx
index 8d13641..1f825e7 100644
--- a/sc/inc/dbdata.hxx
+++ b/sc/inc/dbdata.hxx
@@ -28,6 +28,8 @@
#include <svl/listener.hxx>
+#include <boost/scoped_ptr.hpp>
+
#include <memory>
#include <set>
#include <vector>
@@ -63,10 +65,10 @@ protected:
class ScDBData : public SvtListener, public ScRefreshTimer
{
private:
- std::unique_ptr<ScSortParam> mpSortParam;
- std::unique_ptr<ScQueryParam> mpQueryParam;
- std::unique_ptr<ScSubTotalParam> mpSubTotal;
- std::unique_ptr<ScImportParam> mpImportParam;
+ boost::scoped_ptr<ScSortParam> mpSortParam;
+ boost::scoped_ptr<ScQueryParam> mpQueryParam;
+ boost::scoped_ptr<ScSubTotalParam> mpSubTotal;
+ boost::scoped_ptr<ScImportParam> mpImportParam;
ScDBDataContainerBase* mpContainer;
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx
index 013a6e2..49a782e 100644
--- a/sc/inc/dociter.hxx
+++ b/sc/inc/dociter.hxx
@@ -30,8 +30,11 @@
#include <vcl/vclptr.hxx>
#include <memory>
+
#include <set>
#include <vector>
+#include <boost/shared_ptr.hpp>
+#include <boost/scoped_ptr.hpp>
class ScDocument;
class ScPatternAttr;
@@ -268,7 +271,7 @@ class ScQueryCellIterator // walk through all non-empty cells in an ar
typedef sc::CellStoreType::const_position_type PositionType;
PositionType maCurPos;
- std::unique_ptr<ScQueryParam> mpParam;
+ boost::scoped_ptr<ScQueryParam> mpParam;
ScDocument* pDoc;
const ScAttrArray* pAttrArray;
sal_uLong nNumFormat;
@@ -584,7 +587,7 @@ public:
struct TabRanges
{
SCTAB mnTab;
- std::shared_ptr<ScFlatBoolRowSegments> mpRanges;
+ ::boost::shared_ptr<ScFlatBoolRowSegments> mpRanges;
TabRanges(SCTAB nTab);
};
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index afa2b7e..7016d7f8 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -45,6 +45,8 @@
#include <set>
#include <vector>
#include <boost/ptr_container/ptr_vector.hpp>
+#include <boost/scoped_ptr.hpp>
+#include <boost/shared_ptr.hpp>
#include "markdata.hxx"
@@ -273,7 +275,7 @@ friend class sc::ColumnSpanSet;
friend class sc::EditTextIterator;
friend class sc::FormulaGroupAreaListener;
- typedef std::vector<ScTable*> TableContainer;
+ typedef ::std::vector<ScTable*> TableContainer;
public:
enum HardRecalcState
@@ -287,9 +289,9 @@ private:
rtl::Reference<ScPoolHelper> xPoolHelper;
- std::shared_ptr<svl::SharedStringPool> mpCellStringPool;
- std::unique_ptr<sc::FormulaGroupContext> mpFormulaGroupCxt;
- mutable std::unique_ptr<sc::DocumentLinkManager> mpDocLinkMgr;
+ boost::shared_ptr<svl::SharedStringPool> mpCellStringPool;
+ boost::scoped_ptr<sc::FormulaGroupContext> mpFormulaGroupCxt;
+ mutable boost::scoped_ptr<sc::DocumentLinkManager> mpDocLinkMgr;
ScCalcConfig maCalcConfig;
@@ -331,14 +333,14 @@ private:
ScFieldEditEngine* pCacheFieldEditEngine;
- std::unique_ptr<ScDocProtection> pDocProtection;
- std::unique_ptr<ScClipParam> mpClipParam;
+ ::std::unique_ptr<ScDocProtection> pDocProtection;
+ ::std::unique_ptr<ScClipParam> mpClipParam;
- std::unique_ptr<ScExternalRefManager> pExternalRefMgr;
- std::unique_ptr<ScMacroManager> mpMacroMgr;
+ ::std::unique_ptr<ScExternalRefManager> pExternalRefMgr;
+ ::std::unique_ptr<ScMacroManager> mpMacroMgr;
// mutable for lazy construction
- mutable std::unique_ptr< ScFormulaParserPool >
+ mutable ::std::unique_ptr< ScFormulaParserPool >
mxFormulaParserPool; /// Pool for all external formula parsers used by this document.
OUString aDocName; // optional: name of document
@@ -467,7 +469,7 @@ private:
sal_Int16 mnNamedRangesLockCount;
- std::set<ScFormulaCell*> maSubTotalCells;
+ ::std::set<ScFormulaCell*> maSubTotalCells;
bool mbUseEmbedFonts;
@@ -589,8 +591,8 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument > GetChartByName( const OUString& rChartName );
- SC_DLLPUBLIC void GetChartRanges( const OUString& rChartName, std::vector< ScRangeList >& rRanges, ScDocument* pSheetNameDoc );
- void SetChartRanges( const OUString& rChartName, const std::vector< ScRangeList >& rRanges );
+ SC_DLLPUBLIC void GetChartRanges( const OUString& rChartName, ::std::vector< ScRangeList >& rRanges, ScDocument* pSheetNameDoc );
+ void SetChartRanges( const OUString& rChartName, const ::std::vector< ScRangeList >& rRanges );
void UpdateChartArea( const OUString& rChartName, const ScRange& rNewArea,
bool bColHeaders, bool bRowHeaders, bool bAdd );
@@ -1601,8 +1603,8 @@ public:
SC_DLLPUBLIC sal_uInt8 GetColFlags( SCCOL nCol, SCTAB nTab ) const;
SC_DLLPUBLIC sal_uInt8 GetRowFlags( SCROW nRow, SCTAB nTab ) const;
- SC_DLLPUBLIC void GetAllRowBreaks(std::set<SCROW>& rBreaks, SCTAB nTab, bool bPage, bool bManual) const;
- SC_DLLPUBLIC void GetAllColBreaks(std::set<SCCOL>& rBreaks, SCTAB nTab, bool bPage, bool bManual) const;
+ SC_DLLPUBLIC void GetAllRowBreaks(::std::set<SCROW>& rBreaks, SCTAB nTab, bool bPage, bool bManual) const;
+ SC_DLLPUBLIC void GetAllColBreaks(::std::set<SCCOL>& rBreaks, SCTAB nTab, bool bPage, bool bManual) const;
SC_DLLPUBLIC ScBreakType HasRowBreak(SCROW nRow, SCTAB nTab) const;
SC_DLLPUBLIC ScBreakType HasColBreak(SCCOL nCol, SCTAB nTab) const;
SC_DLLPUBLIC void SetRowBreak(SCROW nRow, SCTAB nTab, bool bPage, bool bManual);
diff --git a/sc/inc/documentstreamaccess.hxx b/sc/inc/documentstreamaccess.hxx
index 81e0fbc..52335df 100644
--- a/sc/inc/documentstreamaccess.hxx
+++ b/sc/inc/documentstreamaccess.hxx
@@ -11,7 +11,7 @@
#define INCLUDED_SC_INC_DOCUMENTSTREAMACCESS_HXX
#include <rtl/ustring.hxx>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
class ScDocument;
class ScAddress;
@@ -27,7 +27,7 @@ struct DocumentStreamAccessImpl;
*/
class DocumentStreamAccess
{
- std::unique_ptr<DocumentStreamAccessImpl> mpImpl;
+ boost::scoped_ptr<DocumentStreamAccessImpl> mpImpl;
DocumentStreamAccess();
diff --git a/sc/inc/dpcache.hxx b/sc/inc/dpcache.hxx
index 799c8c3..b778086 100644
--- a/sc/inc/dpcache.hxx
+++ b/sc/inc/dpcache.hxx
@@ -25,13 +25,13 @@
#include <tools/date.hxx>
#include <boost/noncopyable.hpp>
+#include <boost/scoped_ptr.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <mdds/flat_segment_tree.hpp>
-#include <memory>
-#include <set>
#include <unordered_set>
#include <vector>
+#include <set>
struct ScQueryParam;
class ScDPObject;
@@ -67,7 +67,7 @@ public:
/**
* Optional items for grouped field.
*/
- std::unique_ptr<GroupItems> mpGroup;
+ boost::scoped_ptr<GroupItems> mpGroup;
/**
* Unique values in the field, stored in ascending order.
diff --git a/sc/inc/dpfilteredcache.hxx b/sc/inc/dpfilteredcache.hxx
index 857ab76..8ec5f8b 100644
--- a/sc/inc/dpfilteredcache.hxx
+++ b/sc/inc/dpfilteredcache.hxx
@@ -26,9 +26,9 @@
#include "dpitemdata.hxx"
#include "calcmacros.hxx"
-#include <memory>
#include <unordered_set>
#include <vector>
+#include <boost/shared_ptr.hpp>
#include <mdds/flat_segment_tree.hpp>
@@ -95,7 +95,7 @@ public:
struct Criterion
{
sal_Int32 mnFieldIndex;
- std::shared_ptr<FilterBase> mpFilter;
+ ::boost::shared_ptr<FilterBase> mpFilter;
Criterion();
};
diff --git a/sc/inc/dpgroup.hxx b/sc/inc/dpgroup.hxx
index 805affe..e59b38a 100644
--- a/sc/inc/dpgroup.hxx
+++ b/sc/inc/dpgroup.hxx
@@ -20,9 +20,9 @@
#ifndef INCLUDED_SC_INC_DPGROUP_HXX
#define INCLUDED_SC_INC_DPGROUP_HXX
-#include <memory>
#include <unordered_set>
#include <vector>
+#include <boost/shared_ptr.hpp>
#include "dptabdat.hxx"
#include "scdllapi.h"
@@ -121,7 +121,7 @@ class ScDPGroupTableData : public ScDPTableData
{
typedef std::unordered_set< OUString, OUStringHash, ::std::equal_to< OUString > > StringHashSet;
- std::shared_ptr<ScDPTableData> pSourceData;
+ ::boost::shared_ptr<ScDPTableData> pSourceData;
long nSourceCount;
ScDPGroupDimensionVec aGroups;
ScDPNumGroupDimension* pNumGroups; // array[nSourceCount]
@@ -138,10 +138,10 @@ class ScDPGroupTableData : public ScDPTableData
public:
// takes ownership of pSource
- ScDPGroupTableData( const std::shared_ptr<ScDPTableData>& pSource, ScDocument* pDocument );
+ ScDPGroupTableData( const ::boost::shared_ptr<ScDPTableData>& pSource, ScDocument* pDocument );
virtual ~ScDPGroupTableData();
- std::shared_ptr<ScDPTableData> GetSourceTableData() { return pSourceData;}
+ boost::shared_ptr<ScDPTableData> GetSourceTableData() { return pSourceData;}
void AddGroupDimension( const ScDPGroupDimension& rGroup );
void SetNumGroupDimension( long nIndex, const ScDPNumGroupDimension& rGroup );
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index dd0a3c9..a167194 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -30,13 +30,13 @@
#include <com/sun/star/sheet/XDimensionsSupplier.hpp>
-#include <memory>
#include <set>
#include <vector>
#include <boost/ptr_container/ptr_list.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/ptr_container/ptr_map.hpp>
+#include <boost/shared_ptr.hpp>
namespace com { namespace sun { namespace star {
@@ -92,7 +92,7 @@ private:
ScSheetSourceDesc* pSheetDesc; // for sheet data
ScImportSourceDesc* pImpDesc; // for database data
ScDPServiceDesc* pServDesc; // for external service
- std::shared_ptr<ScDPTableData> mpTableData;
+ ::boost::shared_ptr<ScDPTableData> mpTableData;
// cached data
com::sun::star::uno::Reference<com::sun::star::sheet::XDimensionsSupplier> xSource;
ScDPOutput* pOutput;
diff --git a/sc/inc/dpsave.hxx b/sc/inc/dpsave.hxx
index c81a690..9973b99 100644
--- a/sc/inc/dpsave.hxx
+++ b/sc/inc/dpsave.hxx
@@ -21,9 +21,9 @@
#define INCLUDED_SC_INC_DPSAVE_HXX
#include <list>
-#include <memory>
#include <boost/ptr_container/ptr_vector.hpp>
+#include <boost/scoped_ptr.hpp>
#include <com/sun/star/sheet/XDimensionsSupplier.hpp>
#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
@@ -52,7 +52,7 @@ class ScDPSaveMember
{
private:
OUString aName;
- std::unique_ptr<OUString> mpLayoutName; // custom name to be displayed in the table.
+ boost::scoped_ptr<OUString> mpLayoutName; // custom name to be displayed in the table.
sal_uInt16 nVisibleMode;
sal_uInt16 nShowDetailsMode;
@@ -98,8 +98,8 @@ class SC_DLLPUBLIC ScDPSaveDimension
{
private:
OUString aName;
- std::unique_ptr<OUString> mpLayoutName;
- std::unique_ptr<OUString> mpSubtotalName;
+ boost::scoped_ptr<OUString> mpLayoutName;
+ boost::scoped_ptr<OUString> mpSubtotalName;
bool bIsDataLayout;
bool bDupFlag;
sal_uInt16 nOrientation;
@@ -258,8 +258,8 @@ private:
* created. */
bool mbDimensionMembersBuilt;
- std::unique_ptr<OUString> mpGrandTotalName;
- mutable std::unique_ptr<DimOrderType> mpDimOrder; // dimension order for row and column dimensions, to traverse result tree.
+ boost::scoped_ptr<OUString> mpGrandTotalName;
+ mutable boost::scoped_ptr<DimOrderType> mpDimOrder; // dimension order for row and column dimensions, to traverse result tree.
public:
SC_DLLPUBLIC ScDPSaveData();
diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx
index 4f63a82..cdae3af 100644
--- a/sc/inc/dptabsrc.hxx
+++ b/sc/inc/dptabsrc.hxx
@@ -48,8 +48,8 @@
#include "dpresfilter.hxx"
#include <boost/noncopyable.hpp>
+#include <boost/scoped_ptr.hpp>
#include <list>
-#include <memory>
#include <unordered_map>
#include <unordered_set>
#include <vector>
@@ -319,8 +319,8 @@ class ScDPDimension : boost::noncopyable, public cppu::WeakImplHelper<
long nUsedHier;
sal_uInt16 nFunction; // enum GeneralFunction
OUString aName; // if empty, take from source
- std::unique_ptr<OUString> mpLayoutName;
- std::unique_ptr<OUString> mpSubtotalName;
+ boost::scoped_ptr<OUString> mpLayoutName;
+ boost::scoped_ptr<OUString> mpSubtotalName;
long nSourceDim; // >=0 if dup'ed
::com::sun::star::sheet::DataPilotFieldReference
aReferenceValue; // settings for "show data as" / "displayed value"
@@ -732,7 +732,7 @@ private:
long nLev;
SCROW mnDataId;
- std::unique_ptr<OUString> mpLayoutName;
+ boost::scoped_ptr<OUString> mpLayoutName;
sal_Int32 nPosition; // manual sorting
bool bVisible;
diff --git a/sc/inc/editdataarray.hxx b/sc/inc/editdataarray.hxx
index a917dcd..e13a4b1 100644
--- a/sc/inc/editdataarray.hxx
+++ b/sc/inc/editdataarray.hxx
@@ -23,8 +23,8 @@
#include "address.hxx"
#include <editeng/editobj.hxx>
-#include <memory>
#include <vector>
+#include <boost/shared_ptr.hpp>
class EditTextObject;
@@ -48,8 +48,8 @@ public:
Item(); // disabled
private:
- std::shared_ptr<EditTextObject> mpOldData;
- std::shared_ptr<EditTextObject> mpNewData;
+ ::boost::shared_ptr<EditTextObject> mpOldData;
+ ::boost::shared_ptr<EditTextObject> mpNewData;
SCTAB mnTab;
SCCOL mnCol;
SCROW mnRow;
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index bb8b44c..be51351 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -34,7 +34,7 @@
#include <formula/token.hxx>
#include <osl/mutex.hxx>
-#include <memory>
+#include <boost/shared_ptr.hpp>
#include <unordered_map>
#include <unordered_set>
#include <vector>
@@ -91,7 +91,7 @@ class ScExternalRefCache
{
public:
typedef ::formula::FormulaTokenRef TokenRef;
- typedef std::shared_ptr<ScTokenArray> TokenArrayRef;
+ typedef ::boost::shared_ptr<ScTokenArray> TokenArrayRef;
struct TableName
{
@@ -198,7 +198,7 @@ public:
ReferencedFlag meReferenced;
};
- typedef std::shared_ptr<Table> TableTypeRef;
+ typedef ::boost::shared_ptr<Table> TableTypeRef;
typedef std::unordered_map< OUString, size_t, OUStringHash>
TableNameIndexMap;
diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx
index ed2e72c..905e907 100644
--- a/sc/inc/fielduno.hxx
+++ b/sc/inc/fielduno.hxx
@@ -40,7 +40,7 @@
#include <osl/mutex.hxx>
#include <boost/noncopyable.hpp>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
class ScEditSource;
class SvxFieldItem;
@@ -207,7 +207,7 @@ class ScEditFieldObj : public cppu::WeakImplHelper<
ESelection aSelection;
sal_Int32 meType;
- std::unique_ptr<SvxFieldData> mpData;
+ boost::scoped_ptr<SvxFieldData> mpData;
com::sun::star::uno::Reference<com::sun::star::text::XTextRange> mpContent;
com::sun::star::util::DateTime maDateTime;
diff --git a/sc/inc/importfilterdata.hxx b/sc/inc/importfilterdata.hxx
index 8ea1473..089f427 100644
--- a/sc/inc/importfilterdata.hxx
+++ b/sc/inc/importfilterdata.hxx
@@ -13,7 +13,7 @@
#include "address.hxx"
#include <boost/noncopyable.hpp>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
namespace sc {
@@ -39,7 +39,7 @@ struct ImportPostProcessData : boost::noncopyable
DataStream();
};
- std::unique_ptr<DataStream> mpDataStream;
+ boost::scoped_ptr<DataStream> mpDataStream;
};
}
diff --git a/sc/inc/listenercontext.hxx b/sc/inc/listenercontext.hxx
index fe40dea..000a5be 100644
--- a/sc/inc/listenercontext.hxx
+++ b/sc/inc/listenercontext.hxx
@@ -14,7 +14,8 @@
#include "columnspanset.hxx"
#include <boost/noncopyable.hpp>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
+#include <boost/shared_ptr.hpp>
class ScDocument;
class ScTokenArray;
@@ -27,10 +28,10 @@ class ColumnBlockPositionSet;
class StartListeningContext : boost::noncopyable
{
ScDocument& mrDoc;
- std::shared_ptr<ColumnBlockPositionSet> mpSet;
+ boost::shared_ptr<ColumnBlockPositionSet> mpSet;
public:
StartListeningContext(ScDocument& rDoc);
- StartListeningContext(ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet);
+ StartListeningContext(ScDocument& rDoc, const boost::shared_ptr<ColumnBlockPositionSet>& pSet);
ScDocument& getDoc() { return mrDoc;}
ColumnBlockPosition* getBlockPosition(SCTAB nTab, SCCOL nCol);
@@ -40,13 +41,13 @@ class EndListeningContext : boost::noncopyable
{
ScDocument& mrDoc;
ColumnSpanSet maSet;
- std::shared_ptr<ColumnBlockPositionSet> mpPosSet;
+ boost::shared_ptr<ColumnBlockPositionSet> mpPosSet;
ScTokenArray* mpOldCode;
ScAddress maPosDelta; // Add this to get the old position prior to the move.
public:
EndListeningContext(ScDocument& rDoc, ScTokenArray* pOldCode = NULL);
- EndListeningContext(ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet, ScTokenArray* pOldCode = NULL);
+ EndListeningContext(ScDocument& rDoc, const boost::shared_ptr<ColumnBlockPositionSet>& pSet, ScTokenArray* pOldCode = NULL);
void setPositionDelta( const ScAddress& rDelta );
@@ -63,7 +64,7 @@ public:
class PurgeListenerAction : public ColumnSpanSet::Action, boost::noncopyable
{
ScDocument& mrDoc;
- std::unique_ptr<ColumnBlockPosition> mpBlockPos;
+ boost::scoped_ptr<ColumnBlockPosition> mpBlockPos;
public:
PurgeListenerAction( ScDocument& rDoc );
diff --git a/sc/inc/pch/precompiled_sc.hxx b/sc/inc/pch/precompiled_sc.hxx
index 4a0a1e9..9f6258b 100644
--- a/sc/inc/pch/precompiled_sc.hxx
+++ b/sc/inc/pch/precompiled_sc.hxx
@@ -42,6 +42,8 @@
#include <boost/ptr_container/ptr_map.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <memory>
+#include <boost/scoped_ptr.hpp>
+#include <boost/shared_ptr.hpp>
#include <cassert>
#include <climits>
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
diff --git a/sc/inc/pch/precompiled_scfilt.hxx b/sc/inc/pch/precompiled_scfilt.hxx
index 5eb13ba..32480a7 100644
--- a/sc/inc/pch/precompiled_scfilt.hxx
+++ b/sc/inc/pch/precompiled_scfilt.hxx
@@ -23,6 +23,8 @@
#include <boost/noncopyable.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <memory>
+#include <boost/scoped_ptr.hpp>
+#include <boost/shared_ptr.hpp>
#include <cassert>
#include <com/sun/star/awt/DeviceInfo.hpp>
#include <com/sun/star/awt/FontDescriptor.hpp>
diff --git a/sc/inc/pch/precompiled_scui.hxx b/sc/inc/pch/precompiled_scui.hxx
index 4b7fd17..fbd83f1 100644
--- a/sc/inc/pch/precompiled_scui.hxx
+++ b/sc/inc/pch/precompiled_scui.hxx
@@ -19,6 +19,7 @@
#include <basic/sbmod.hxx>
#include <basic/sbstar.hxx>
#include <memory>
+#include <boost/scoped_ptr.hpp>
#include <cmath>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XDesktop2.hpp>
diff --git a/sc/inc/pch/precompiled_vbaobj.hxx b/sc/inc/pch/precompiled_vbaobj.hxx
index 90120f4..130a34c 100644
--- a/sc/inc/pch/precompiled_vbaobj.hxx
+++ b/sc/inc/pch/precompiled_vbaobj.hxx
@@ -22,6 +22,7 @@
#include <basic/sbuno.hxx>
#include <basic/sbx.hxx>
#include <basic/sbxobj.hxx>
+#include <boost/scoped_ptr.hpp>
#include <com/sun/star/awt/FontSlant.hpp>
#include <com/sun/star/awt/FontStrikeout.hpp>
#include <com/sun/star/awt/FontUnderline.hpp>
diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx
index 98a89f7..7a376d2 100644
--- a/sc/inc/postit.hxx
+++ b/sc/inc/postit.hxx
@@ -20,12 +20,12 @@
#ifndef INCLUDED_SC_INC_POSTIT_HXX
#define INCLUDED_SC_INC_POSTIT_HXX
+#include <boost/shared_ptr.hpp>
#include <rtl/ustring.hxx>
#include "address.hxx"
#include "scdllapi.h"
#include <map>
-#include <memory>
class EditTextObject;
class OutlinerParaObject;
@@ -39,7 +39,7 @@ struct ScCaptionInitData;
/** Internal data for a cell annotation. */
struct SC_DLLPUBLIC ScNoteData
{
- typedef std::shared_ptr< ScCaptionInitData > ScCaptionInitDataRef;
+ typedef ::boost::shared_ptr< ScCaptionInitData > ScCaptionInitDataRef;
OUString maDate; /// Creation date of the note.
OUString maAuthor; /// Author of the note.
diff --git a/sc/inc/simpleformulacalc.hxx b/sc/inc/simpleformulacalc.hxx
index 081823d..f12e261 100644
--- a/sc/inc/simpleformulacalc.hxx
+++ b/sc/inc/simpleformulacalc.hxx
@@ -10,7 +10,7 @@
#ifndef INCLUDED_SC_INC_SIMPLEFORMULACALC_HXX
#define INCLUDED_SC_INC_SIMPLEFORMULACALC_HXX
-#include <memory>
+#include <boost/scoped_ptr.hpp>
#include <formula/grammar.hxx>
#include "address.hxx"
@@ -26,7 +26,7 @@ private:
sal_uLong mnFormatIndex;
bool mbCalculated;
- std::unique_ptr<ScTokenArray> mpCode;
+ boost::scoped_ptr<ScTokenArray> mpCode;
ScAddress maAddr;
ScDocument* mpDoc;
ScFormulaResult maResult;
diff --git a/sc/inc/simplerangelist.hxx b/sc/inc/simplerangelist.hxx
index bf672ea..1fcbefd 100644
--- a/sc/inc/simplerangelist.hxx
+++ b/sc/inc/simplerangelist.hxx
@@ -20,11 +20,12 @@
#ifndef INCLUDED_SC_INC_SIMPLERANGELIST_HXX
#define INCLUDED_SC_INC_SIMPLERANGELIST_HXX
+#include <boost/shared_ptr.hpp>
+
#include "address.hxx"
-#include <list>
#include <map>
-#include <memory>
+#include <list>
class ScRange;
class ScRangeList;
@@ -46,7 +47,7 @@ public:
SCROW mnRow2;
explicit Range(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2);
};
- typedef std::shared_ptr< ::std::list<Range> > RangeListRef;
+ typedef ::boost::shared_ptr< ::std::list<Range> > RangeListRef;
typedef ::std::map<SCTAB, RangeListRef> TabType;
ScSimpleRangeList();
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 8a12532..77330b3 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -36,7 +36,7 @@
#include <set>
#include <map>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
#include <boost/noncopyable.hpp>
namespace utl {
@@ -140,17 +140,17 @@ private:
SCROW nRepeatStartY;
SCROW nRepeatEndY;
- std::unique_ptr<ScTableProtection> pTabProtection;
+ boost::scoped_ptr<ScTableProtection> pTabProtection;
sal_uInt16* pColWidth;
- std::unique_ptr<ScFlatUInt16RowSegments> mpRowHeights;
+ boost::scoped_ptr<ScFlatUInt16RowSegments> mpRowHeights;
sal_uInt8* pColFlags;
ScBitMaskCompressedArray< SCROW, sal_uInt8>* pRowFlags;
- std::unique_ptr<ScFlatBoolColSegments> mpHiddenCols;
- std::unique_ptr<ScFlatBoolRowSegments> mpHiddenRows;
- std::unique_ptr<ScFlatBoolColSegments> mpFilteredCols;
- std::unique_ptr<ScFlatBoolRowSegments> mpFilteredRows;
+ boost::scoped_ptr<ScFlatBoolColSegments> mpHiddenCols;
+ boost::scoped_ptr<ScFlatBoolRowSegments> mpHiddenRows;
+ boost::scoped_ptr<ScFlatBoolColSegments> mpFilteredCols;
+ boost::scoped_ptr<ScFlatBoolRowSegments> mpFilteredRows;
::std::set<SCROW> maRowPageBreaks;
::std::set<SCROW> maRowManualBreaks;
@@ -188,7 +188,7 @@ private:
ScDBData* pDBDataNoName;
mutable ScRangeName* mpRangeName;
- std::unique_ptr<ScConditionalFormatList> mpCondFormatList;
+ boost::scoped_ptr<ScConditionalFormatList> mpCondFormatList;
bool bScenario:1;
bool bLayoutRTL:1;
diff --git a/sc/inc/tabprotection.hxx b/sc/inc/tabprotection.hxx
index 07aecaa..1458399 100644
--- a/sc/inc/tabprotection.hxx
+++ b/sc/inc/tabprotection.hxx
@@ -25,7 +25,7 @@
#include "global.hxx"
#include "rangelst.hxx"
-#include <memory>
+#include <boost/scoped_ptr.hpp>
class ScDocument;
class ScTableProtectionImpl;
@@ -103,7 +103,7 @@ public:
void setOption(Option eOption, bool bEnabled);
private:
- std::unique_ptr<ScTableProtectionImpl> mpImpl;
+ ::boost::scoped_ptr<ScTableProtectionImpl> mpImpl;
};
/** Container for the Excel EnhancedProtection feature.
@@ -195,7 +195,7 @@ public:
bool isSelectionEditable( const ScRangeList& rRangeList ) const;
private:
- std::unique_ptr<ScTableProtectionImpl> mpImpl;
+ ::boost::scoped_ptr<ScTableProtectionImpl> mpImpl;
};
#endif
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index 352e38e..654df89 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -662,12 +662,12 @@ ScDocShellRef ScBootstrapFixture::saveAndReload( ScDocShell* pShell, sal_Int32 n
return xDocSh;
}
-std::shared_ptr<utl::TempFile> ScBootstrapFixture::exportTo( ScDocShell* pShell, sal_Int32 nFormat )
+boost::shared_ptr<utl::TempFile> ScBootstrapFixture::exportTo( ScDocShell* pShell, sal_Int32 nFormat )
{
OUString aFilterName(aFileFormats[nFormat].pFilterName, strlen(aFileFormats[nFormat].pFilterName), RTL_TEXTENCODING_UTF8) ;
OUString aFilterType(aFileFormats[nFormat].pTypeName, strlen(aFileFormats[nFormat].pTypeName), RTL_TEXTENCODING_UTF8);
- std::shared_ptr<utl::TempFile> pTempFile(new utl::TempFile());
+ boost::shared_ptr<utl::TempFile> pTempFile(new utl::TempFile());
pTempFile->EnableKillingFile();
SfxMedium aStoreMedium( pTempFile->GetURL(), STREAM_STD_WRITE );
SotClipboardFormatId nExportFormat = SotClipboardFormatId::NONE;
diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx
index e7a6d5f..17934f6 100644
--- a/sc/qa/unit/helper/qahelper.hxx
+++ b/sc/qa/unit/helper/qahelper.hxx
@@ -32,7 +32,7 @@
#include <sal/types.h>
-#include <memory>
+#include <boost/shared_ptr.hpp>
#if defined(SCQAHELPER_DLLIMPLEMENTATION)
#define SCQAHELPER_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
@@ -230,7 +230,7 @@ public:
ScDocShellRef saveAndReload( ScDocShell* pShell, sal_Int32 nFormat );
- static std::shared_ptr<utl::TempFile> exportTo( ScDocShell* pShell, sal_Int32 nFormat );
+ static boost::shared_ptr<utl::TempFile> exportTo( ScDocShell* pShell, sal_Int32 nFormat );
void miscRowHeightsTest( TestParam* aTestValues, unsigned int numElems );
};
diff --git a/sc/qa/unit/helper/xpath.cxx b/sc/qa/unit/helper/xpath.cxx
index 78b48dd..c90b7c0 100644
--- a/sc/qa/unit/helper/xpath.cxx
+++ b/sc/qa/unit/helper/xpath.cxx
@@ -21,13 +21,13 @@
xmlDocPtr XPathHelper::parseExport(ScDocShell* pShell, uno::Reference<lang::XMultiServiceFactory> xSFactory, const OUString& rFile, sal_Int32 nFormat)
{
- std::shared_ptr<utl::TempFile> pTempFile = ScBootstrapFixture::exportTo(pShell, nFormat);
+ boost::shared_ptr<utl::TempFile> pTempFile = ScBootstrapFixture::exportTo(pShell, nFormat);
// Read the XML stream we're interested in.
uno::Reference<packages::zip::XZipFileAccess2> xNameAccess = packages::zip::ZipFileAccess::createWithURL(comphelper::getComponentContext(xSFactory), pTempFile->GetURL());
uno::Reference<io::XInputStream> xInputStream(xNameAccess->getByName(rFile), uno::UNO_QUERY);
CPPUNIT_ASSERT(xInputStream.is());
- std::shared_ptr<SvStream> pStream(utl::UcbStreamHelper::CreateStream(xInputStream, true));
+ boost::shared_ptr<SvStream> pStream(utl::UcbStreamHelper::CreateStream(xInputStream, true));
return XmlTestTools::parseXmlStream(pStream.get());
}
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 3299dd9..4a478ce 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -3256,7 +3256,7 @@ void Test::testCopyPaste()
aRange = ScRange(0,1,1,2,1,1);//target: Sheet2.A2:C2
ScDocument* pUndoDoc = new ScDocument(SCDOCMODE_UNDO);
pUndoDoc->InitUndo(m_pDoc, 1, 1, true, true);
- std::unique_ptr<ScUndoPaste> pUndo(createUndoPaste(getDocShell(), aRange, pUndoDoc));
+ boost::scoped_ptr<ScUndoPaste> pUndo(createUndoPaste(getDocShell(), aRange, pUndoDoc));
ScMarkData aMark;
aMark.SetMarkArea(aRange);
m_pDoc->CopyFromClip(aRange, aMark, IDF_ALL, NULL, &aClipDoc);
@@ -5417,7 +5417,7 @@ void Test::testCellTextWidth()
ScAddress aTopCell(0, 0, 0);
// Sheet is empty.
- std::unique_ptr<ScColumnTextWidthIterator> pIter(new ScColumnTextWidthIterator(*m_pDoc, aTopCell, MAXROW));
+ boost::scoped_ptr<ScColumnTextWidthIterator> pIter(new ScColumnTextWidthIterator(*m_pDoc, aTopCell, MAXROW));
CPPUNIT_ASSERT_MESSAGE("Column should have no text widths stored.", !pIter->hasCell());
// Sheet only has one cell.
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 6401d4c..5df5457 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -31,7 +31,7 @@
#include <formula/vectortoken.hxx>
#include <svl/broadcast.hxx>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
using namespace formula;
@@ -171,7 +171,7 @@ void Test::testFormulaCreateStringFromTokens()
};
(void) aTests;
- std::unique_ptr<ScTokenArray> pArray;
+ boost::scoped_ptr<ScTokenArray> pArray;
sc::TokenStringContext aCxt(m_pDoc, formula::FormulaGrammar::GRAM_ENGLISH);
@@ -920,7 +920,7 @@ void Test::testFormulaCompiler()
for (size_t i = 0, n = SAL_N_ELEMENTS(aTests); i < n; ++i)
{
- std::unique_ptr<ScTokenArray> pArray;
+ boost::scoped_ptr<ScTokenArray> pArray;
{
pArray.reset(compileFormula(m_pDoc, OUString::createFromAscii(aTests[i].pInput), NULL, aTests[i].eInputGram));
CPPUNIT_ASSERT_MESSAGE("Token array shouldn't be NULL!", pArray.get());
@@ -950,7 +950,7 @@ void Test::testFormulaCompilerJumpReordering()
OUString aInput("=IF(B1;12;\"text\")");
// Compile formula string first.
- std::unique_ptr<ScTokenArray> pCode(compileFormula(m_pDoc, aInput));
+ boost::scoped_ptr<ScTokenArray> pCode(compileFormula(m_pDoc, aInput));
CPPUNIT_ASSERT(pCode.get());
// Then generate RPN tokens.
diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx
index dc2782c7..88666a2 100644
--- a/sc/qa/unit/ucalc_sharedformula.cxx
+++ b/sc/qa/unit/ucalc_sharedformula.cxx
@@ -1318,7 +1318,7 @@ void Test::testSharedFormulasCopyPaste()
ScDocument* pUndoDoc = new ScDocument(SCDOCMODE_UNDO);
pUndoDoc->InitUndo(m_pDoc, 0, 0, true, true);
m_pDoc->CopyToDocument(aRange, IDF_CONTENTS, false, pUndoDoc);
- std::unique_ptr<ScUndoPaste> pUndo(createUndoPaste(getDocShell(), aRange, pUndoDoc));
+ boost::scoped_ptr<ScUndoPaste> pUndo(createUndoPaste(getDocShell(), aRange, pUndoDoc));
// First, make sure the formula cells are shared in the undo document.
aPos.SetCol(1);
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index 4c120df..65c2331 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -45,7 +45,7 @@
#include "cellvalue.hxx"
#include "editutil.hxx"
#include <rtl/strbuf.hxx>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
// STATIC DATA -----------------------------------------------------------
@@ -243,7 +243,7 @@ void ScAttrArray::AddCondFormat( SCROW nStartRow, SCROW nEndRow, sal_uInt32 nInd
{
const ScPatternAttr* pPattern = GetPattern(nTempStartRow);
- std::unique_ptr<ScPatternAttr> pNewPattern;
+ boost::scoped_ptr<ScPatternAttr> pNewPattern;
if(pPattern)
{
pNewPattern.reset( new ScPatternAttr(*pPattern) );
@@ -581,7 +581,7 @@ void ScAttrArray::ApplyStyleArea( SCROW nStartRow, SCROW nEndRow, ScStyleSheet*
do
{
const ScPatternAttr* pOldPattern = pData[nPos].pPattern;
- std::unique_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr(*pOldPattern));
+ boost::scoped_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr(*pOldPattern));
pNewPattern->SetStyleSheet(pStyle);
SCROW nY1 = nStart;
SCROW nY2 = pData[nPos].nRow;
@@ -680,7 +680,7 @@ void ScAttrArray::ApplyLineStyleArea( SCROW nStartRow, SCROW nEndRow,
if ( (SfxItemState::SET == eState) || (SfxItemState::SET == eTLBRState) || (SfxItemState::SET == eBLTRState) )
{
- std::unique_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr(*pOldPattern));
+ boost::scoped_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr(*pOldPattern));
SfxItemSet& rNewSet = pNewPattern->GetItemSet();
SCROW nY1 = nStart;
SCROW nY2 = pData[nPos].nRow;
@@ -1449,7 +1449,7 @@ bool ScAttrArray::RemoveAreaMerge(SCROW nStartRow, SCROW nEndRow)
for (SCROW nThisRow = nThisStart; nThisRow <= nThisEnd; nThisRow++)
pDocument->ApplyAttr( nThisCol, nThisRow, nTab, *pAttr );
- std::unique_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr( pDocument->GetPool() ));
+ boost::scoped_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr( pDocument->GetPool() ));
SfxItemSet* pSet = &pNewPattern->GetItemSet();
pSet->Put( *pFlagAttr );
pDocument->ApplyPatternAreaTab( nThisCol, nThisStart, nMergeEndCol, nMergeEndRow,
@@ -1506,7 +1506,7 @@ void ScAttrArray::SetPatternAreaSafe( SCROW nStartRow, SCROW nEndRow,
// because it would have no cell style information.
// Instead, the document's GetDefPattern is copied. Since it is passed as
// pWantedPattern, no special treatment of default is needed here anymore.
- std::unique_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr( *pWantedPattern ));
+ boost::scoped_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr( *pWantedPattern ));
SfxItemSet* pSet = &pNewPattern->GetItemSet();
pSet->Put( *pItem );
SetPatternArea( nThisRow, nAttrRow, pNewPattern.get(), true );
@@ -1736,7 +1736,7 @@ void ScAttrArray::FindStyleSheet( const SfxStyleSheetBase* pStyleSheet, ScFlatBo
if (bReset)
{
- std::unique_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr(*pData[nPos].pPattern));
+ boost::scoped_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr(*pData[nPos].pPattern));
pDocument->GetPool()->Remove(*pData[nPos].pPattern);
pNewPattern->SetStyleSheet( static_cast<ScStyleSheet*>(
pDocument->GetStyleSheetPool()->
@@ -2233,7 +2233,7 @@ void ScAttrArray::CopyArea(
}
else if ( nStripFlags )
{
- std::unique_ptr<ScPatternAttr> pTmpPattern(new ScPatternAttr( *pOldPattern ));
+ boost::scoped_ptr<ScPatternAttr> pTmpPattern(new ScPatternAttr( *pOldPattern ));
sal_Int16 nNewFlags = 0;
if ( nStripFlags != SC_MF_ALL )
nNewFlags = static_cast<const ScMergeFlagAttr&>(pTmpPattern->GetItem(ATTR_MERGE_FLAG)).
diff --git a/sc/source/core/data/clipcontext.cxx b/sc/source/core/data/clipcontext.cxx
index 4bdb0e7..ac78dbd 100644
--- a/sc/source/core/data/clipcontext.cxx
+++ b/sc/source/core/data/clipcontext.cxx
@@ -241,7 +241,7 @@ void CopyFromClipContext::setSingleCell( const ScAddress& rSrcPos, const ScColum
// make this process simpler.
ScFieldEditEngine& rEngine = mrDestDoc.GetEditEngine();
rEngine.SetText(rSrcCell.mpFormula->GetString().getString());
- std::unique_ptr<EditTextObject> pObj(rEngine.CreateTextObject());
+ boost::scoped_ptr<EditTextObject> pObj(rEngine.CreateTextObject());
pObj->NormalizeString(mrDestDoc.GetSharedStringPool());
rSrcCell.set(*pObj);
}
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 04eedf7..7b1e410 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -57,7 +57,7 @@
#include <map>
#include <cstdio>
#include <boost/checked_delete.hpp>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
using ::editeng::SvxBorderLine;
using namespace formula;
@@ -549,7 +549,7 @@ void ScColumn::RemoveCondFormat( SCROW nStartRow, SCROW nEndRow, sal_uInt32 nInd
void ScColumn::ApplyStyle( SCROW nRow, const ScStyleSheet& rStyle )
{
const ScPatternAttr* pPattern = pAttrArray->GetPattern(nRow);
- std::unique_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr(*pPattern));
+ boost::scoped_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr(*pPattern));
if (pNewPattern)
{
pNewPattern->SetStyleSheet(const_cast<ScStyleSheet*>(&rStyle));
@@ -702,7 +702,7 @@ void ScColumn::ApplyAttr( SCROW nRow, const SfxPoolItem& rAttr )
ScDocumentPool* pDocPool = pDocument->GetPool();
const ScPatternAttr* pOldPattern = pAttrArray->GetPattern( nRow );
- std::unique_ptr<ScPatternAttr> pTemp(new ScPatternAttr(*pOldPattern));
+ boost::scoped_ptr<ScPatternAttr> pTemp(new ScPatternAttr(*pOldPattern));
pTemp->GetItemSet().Put(rAttr);
const ScPatternAttr* pNewPattern = static_cast<const ScPatternAttr*>( &pDocPool->Put( *pTemp ) );
@@ -1657,7 +1657,7 @@ void ScColumn::CopyToColumn(
const ScStyleSheet* pStyle =
rColumn.pAttrArray->GetPattern( nRow )->GetStyleSheet();
const ScPatternAttr* pPattern = pAttrArray->GetPattern( nRow );
- std::unique_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr( *pPattern ));
+ boost::scoped_ptr<ScPatternAttr> pNewPattern(new ScPatternAttr( *pPattern ));
pNewPattern->SetStyleSheet( const_cast<ScStyleSheet*>(pStyle) );
rColumn.pAttrArray->SetPattern( nRow, pNewPattern.get(), true );
}
@@ -2058,7 +2058,7 @@ class UpdateRefOnNonCopy : std::unary_function<sc::FormulaGroupEntry, void>
ScFormulaCell** ppEnd = pp + rGroup.mnLength;
ScFormulaCell* pTop = *pp;
ScTokenArray* pCode = pTop->GetCode();
- std::unique_ptr<ScTokenArray> pOldCode(pCode->Clone());
+ boost::scoped_ptr<ScTokenArray> pOldCode(pCode->Clone());
ScAddress aOldPos = pTop->aPos;
// Run this before the position gets updated.
@@ -2128,7 +2128,7 @@ class UpdateRefOnNonCopy : std::unary_function<sc::FormulaGroupEntry, void>
ScFormulaCell** ppEnd = pp + rGroup.mnLength;
ScFormulaCell* pTop = *pp;
ScTokenArray* pCode = pTop->GetCode();
- std::unique_ptr<ScTokenArray> pOldCode(pCode->Clone());
+ boost::scoped_ptr<ScTokenArray> pOldCode(pCode->Clone());
ScAddress aPos = pTop->aPos;
ScAddress aOldPos = aPos;
@@ -2164,7 +2164,7 @@ class UpdateRefOnNonCopy : std::unary_function<sc::FormulaGroupEntry, void>
// Make sure that the start and end listening contexts share the
// same block position set, else an invalid iterator may ensue.
- std::shared_ptr<sc::ColumnBlockPositionSet> pPosSet(
+ boost::shared_ptr<sc::ColumnBlockPositionSet> pPosSet(
new sc::ColumnBlockPositionSet(mpCxt->mrDoc));
sc::StartListeningContext aStartCxt(mpCxt->mrDoc, pPosSet);
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 5118e56..5347082 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -67,8 +67,8 @@
#include <formula/errorcodes.hxx>
#include <formula/vectortoken.hxx>
+#include <boost/scoped_ptr.hpp>
#include <algorithm>
-#include <memory>
// factor from font size to optimal cell height (text width)
#define SC_ROT_BREAK_FACTOR 6
@@ -368,7 +368,7 @@ long ScColumn::GetNeededSize(
SfxItemSet* pSet = new SfxItemSet( pEngine->GetEmptyItemSet() );
if ( ScStyleSheet* pPreviewStyle = pDocument->GetPreviewCellStyle( nCol, nRow, nTab ) )
{
- std::unique_ptr<ScPatternAttr> pPreviewPattern(new ScPatternAttr( *pPattern ));
+ boost::scoped_ptr<ScPatternAttr> pPreviewPattern(new ScPatternAttr( *pPattern ));
pPreviewPattern->SetStyleSheet(pPreviewStyle);
pPreviewPattern->FillEditItemSet( pSet, pCondSet );
}
@@ -1054,7 +1054,7 @@ public:
class RemoveEditAttribsHandler : public StrEntries
{
- std::unique_ptr<ScFieldEditEngine> mpEngine;
+ boost::scoped_ptr<ScFieldEditEngine> mpEngine;
public:
RemoveEditAttribsHandler(sc::CellStoreType& rCells, ScDocument* pDoc) : StrEntries(rCells, pDoc) {}
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 138b0f5..c39c295 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -50,7 +50,7 @@
#include <com/sun/star/i18n/LocaleDataItem.hpp>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
#include <mdds/flat_segment_tree.hpp>
@@ -423,7 +423,7 @@ void ScColumn::AttachNewFormulaCell(
{
case sc::ConvertToGroupListening:
{
- std::shared_ptr<sc::ColumnBlockPositionSet> pPosSet(new sc::ColumnBlockPositionSet(*pDocument));
+ boost::shared_ptr<sc::ColumnBlockPositionSet> pPosSet(new sc::ColumnBlockPositionSet(*pDocument));
sc::StartListeningContext aStartCxt(*pDocument, pPosSet);
sc::EndListeningContext aEndCxt(*pDocument, pPosSet);
SCROW nRow = aPos.first->position + aPos.second;
diff --git a/sc/source/core/data/column4.cxx b/sc/source/core/data/column4.cxx
index bd7c60b..ac09eac 100644
--- a/sc/source/core/data/column4.cxx
+++ b/sc/source/core/data/column4.cxx
@@ -34,6 +34,8 @@
#include <vector>
#include <cassert>
+#include <boost/shared_ptr.hpp>
+
bool ScColumn::IsMerged( SCROW nRow ) const
{
return pAttrArray->IsMerged(nRow);
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index b72a5ad..1926118 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -42,7 +42,7 @@
#include "refupdatecontext.hxx"
#include <svl/sharedstring.hxx>
#include <svl/sharedstringpool.hxx>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
using namespace formula;
@@ -653,7 +653,7 @@ void ScConditionEntry::Interpret( const ScAddress& rPos )
// Evaluate formulas
bool bDirty = false; // 1 and 2 separate?
- std::unique_ptr<ScFormulaCell> pTemp1;
+ boost::scoped_ptr<ScFormulaCell> pTemp1;
ScFormulaCell* pEff1 = pFCell1;
if ( bRelRef1 )
{
@@ -683,7 +683,7 @@ void ScConditionEntry::Interpret( const ScAddress& rPos )
}
pTemp1.reset();
- std::unique_ptr<ScFormulaCell> pTemp2;
+ boost::scoped_ptr<ScFormulaCell> pTemp2;
ScFormulaCell* pEff2 = pFCell2; //@ 1!=2
if ( bRelRef2 )
{
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 3b96fb4..a38f712 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -131,7 +131,7 @@ private:
ScDocument::ScDocument( ScDocumentMode eMode, SfxObjectShell* pDocShell ) :
mpCellStringPool(new svl::SharedStringPool(ScGlobal::pCharClass)),
- mpFormulaGroupCxt(nullptr),
+ mpFormulaGroupCxt(NULL),
maCalcConfig( ScInterpreter::GetGlobalConfig()),
mpUndoManager( NULL ),
pEditEngine( NULL ),
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 15d407a..0e6998a 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -73,8 +73,8 @@
#include "scopetools.hxx"
#include "globalnames.hxx"
+#include <boost/scoped_ptr.hpp>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
-#include <memory>
using namespace com::sun::star;
@@ -974,7 +974,7 @@ void ScDocument::UpdateReference(
if (!ValidRange(rCxt.maRange))
return;
- std::unique_ptr<sc::ExpandRefsSwitch> pExpandRefsSwitch;
+ boost::scoped_ptr<sc::ExpandRefsSwitch> pExpandRefsSwitch;
if (rCxt.isInserted())
pExpandRefsSwitch.reset(new sc::ExpandRefsSwitch(*this, SC_MOD()->GetInputOptions().GetExpandRefs()));
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx
index 48319ba..4d93eca 100644
--- a/sc/source/core/data/documen4.cxx
+++ b/sc/source/core/data/documen4.cxx
@@ -339,7 +339,7 @@ void ScDocument::InsertMatrixFormula(SCCOL nCol1, SCROW nRow1,
// Reference in each cell must point to the origin cell relative to the current cell.
aRefData.SetAddress(aBasePos, aPos);
*t->GetSingleRef() = aRefData;
- std::unique_ptr<ScTokenArray> pTokArr(aArr.Clone());
+ boost::scoped_ptr<ScTokenArray> pTokArr(aArr.Clone());
pCell = new ScFormulaCell(this, aPos, *pTokArr, eGram, MM_REFERENCE);
pTab->SetFormulaCell(nCol, nRow, pCell);
}
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index d9e9bd3..c51ca60 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -89,7 +89,7 @@
#include <documentlinkmgr.hxx>
#include <scopetools.hxx>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
using namespace com::sun::star;
@@ -571,7 +571,7 @@ bool ScDocument::IdleCalcTextWidth() // true = try next again
// Start at specified cell position (nCol, nRow, nTab).
ScColumn* pCol = &pTab->aCol[aScope.Col()];
- std::unique_ptr<ScColumnTextWidthIterator> pColIter(new ScColumnTextWidthIterator(*pCol, aScope.Row(), MAXROW));
+ boost::scoped_ptr<ScColumnTextWidthIterator> pColIter(new ScColumnTextWidthIterator(*pCol, aScope.Row(), MAXROW));
OutputDevice* pDev = NULL;
sal_uInt16 nRestart = 0;
@@ -1205,7 +1205,7 @@ void ScDocument::TransliterateText( const ScMarkData& rMultiMark, sal_Int32 nTyp
bool bConsiderLanguage = aTransliterationWrapper.needLanguageForTheMode();
sal_uInt16 nLanguage = LANGUAGE_SYSTEM;
- std::unique_ptr<ScEditEngineDefaulter> pEngine; // not using pEditEngine member because of defaults
+ boost::scoped_ptr<ScEditEngineDefaulter> pEngine; // not using pEditEngine member because of defaults
SCTAB nCount = GetTableCount();
ScMarkData::const_iterator itr = rMultiMark.begin(), itrEnd = rMultiMark.end();
@@ -1240,7 +1240,7 @@ void ScDocument::TransliterateText( const ScMarkData& rMultiMark, sal_Int32 nTyp
SfxItemSet* pDefaults = new SfxItemSet( pEngine->GetEmptyItemSet() );
if ( ScStyleSheet* pPreviewStyle = GetPreviewCellStyle( nCol, nRow, nTab ) )
{
- std::unique_ptr<ScPatternAttr> pPreviewPattern(new ScPatternAttr( *pPattern ));
+ boost::scoped_ptr<ScPatternAttr> pPreviewPattern(new ScPatternAttr( *pPattern ));
pPreviewPattern->SetStyleSheet(pPreviewStyle);
pPreviewPattern->FillEditItemSet( pDefaults );
}
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index a362a24..f4aacca 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -100,10 +100,10 @@
#include <formula/vectortoken.hxx>
-#include <limits>
#include <map>
-#include <memory>
+#include <limits>
#include <boost/checked_delete.hpp>
+#include <boost/scoped_ptr.hpp>
#include "mtvelements.hxx"
@@ -2468,7 +2468,7 @@ void ScDocument::StartListeningFromClip( SCCOL nCol1, SCROW nRow1,
{
if (nInsFlag & IDF_CONTENTS)
{
- std::shared_ptr<sc::ColumnBlockPositionSet> pSet(
+ boost::shared_ptr<sc::ColumnBlockPositionSet> pSet(
new sc::ColumnBlockPositionSet(*this));
sc::StartListeningContext aStartCxt(*this, pSet);
@@ -3118,7 +3118,7 @@ void ScDocument::FillTab( const ScRange& rSrcArea, const ScMarkData& rMark,
SCROW nStartRow = rSrcArea.aStart.Row();
SCCOL nEndCol = rSrcArea.aEnd.Col();
SCROW nEndRow = rSrcArea.aEnd.Row();
- std::unique_ptr<ScDocument> pMixDoc;
+ boost::scoped_ptr<ScDocument> pMixDoc;
bool bDoMix = ( bSkipEmpty || nFunction ) && ( nFlags & IDF_CONTENTS );
bool bOldAutoCalc = GetAutoCalc();
@@ -3175,7 +3175,7 @@ void ScDocument::FillTabMarked( SCTAB nSrcTab, const ScMarkData& rMark,
if (ValidTab(nSrcTab) && nSrcTab < static_cast<SCTAB>(maTabs.size()) && maTabs[nSrcTab])
{
- std::unique_ptr<ScDocument> pMixDoc;
+ boost::scoped_ptr<ScDocument> pMixDoc;
bool bDoMix = ( bSkipEmpty || nFunction ) && ( nFlags & IDF_CONTENTS );
bool bOldAutoCalc = GetAutoCalc();
diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx
index dd3572c..46825d2 100644
--- a/sc/source/core/data/document10.cxx
+++ b/sc/source/core/data/document10.cxx
@@ -207,7 +207,7 @@ void ScDocument::SwapNonEmpty( sc::TableValues& rValues )
if (!rRange.IsValid())
return;
- std::shared_ptr<sc::ColumnBlockPositionSet> pPosSet(new sc::ColumnBlockPositionSet(*this));
+ boost::shared_ptr<sc::ColumnBlockPositionSet> pPosSet(new sc::ColumnBlockPositionSet(*this));
sc::StartListeningContext aStartCxt(*this, pPosSet);
sc::EndListeningContext aEndCxt(*this, pPosSet);
@@ -393,7 +393,7 @@ namespace {
class StartNeededListenersHandler : std::unary_function<ScTable*, void>
{
- std::shared_ptr<sc::StartListeningContext> mpCxt;
+ boost::shared_ptr<sc::StartListeningContext> mpCxt;
public:
StartNeededListenersHandler( ScDocument& rDoc ) : mpCxt(new sc::StartListeningContext(rDoc)) {}
@@ -413,7 +413,7 @@ void ScDocument::StartNeededListeners()
void ScDocument::StartAllListeners( const ScRange& rRange )
{
- std::shared_ptr<sc::ColumnBlockPositionSet> pPosSet(new sc::ColumnBlockPositionSet(*this));
+ boost::shared_ptr<sc::ColumnBlockPositionSet> pPosSet(new sc::ColumnBlockPositionSet(*this));
sc::StartListeningContext aStartCxt(*this, pPosSet);
sc::EndListeningContext aEndCxt(*this, pPosSet);
diff --git a/sc/source/core/data/documentimport.cxx b/sc/source/core/data/documentimport.cxx
index 543181c..642bbc2 100644
--- a/sc/source/core/data/documentimport.cxx
+++ b/sc/source/core/data/documentimport.cxx
@@ -330,7 +330,7 @@ void ScDocumentImport::setMatrixCells(
// Reference in each cell must point to the origin cell relative to the current cell.
aRefData.SetAddress(rBasePos, aPos);
*t->GetSingleRef() = aRefData;
- std::unique_ptr<ScTokenArray> pTokArr(aArr.Clone());
+ boost::scoped_ptr<ScTokenArray> pTokArr(aArr.Clone());
pCell = new ScFormulaCell(&mpImpl->mrDoc, aPos, *pTokArr, eGram, MM_REFERENCE);
pBlockPos->miCellPos =
rCells.set(pBlockPos->miCellPos, aPos.Row(), pCell);
@@ -350,7 +350,7 @@ void ScDocumentImport::setMatrixCells(
aPos.SetRow(nRow);
aRefData.SetAddress(rBasePos, aPos);
*t->GetSingleRef() = aRefData;
- std::unique_ptr<ScTokenArray> pTokArr(aArr.Clone());
+ boost::scoped_ptr<ScTokenArray> pTokArr(aArr.Clone());
pCell = new ScFormulaCell(&mpImpl->mrDoc, aPos, *pTokArr, eGram, MM_REFERENCE);
pBlockPos->miCellPos =
rColCells.set(pBlockPos->miCellPos, aPos.Row(), pCell);
@@ -503,7 +503,7 @@ public:
mpImpl(new Impl(MAXROWCOUNT, mrDocImpl.mnDefaultScriptNumeric))
{}
- std::shared_ptr<Impl> mpImpl;
+ boost::shared_ptr<Impl> mpImpl;
void operator() (const sc::CellStoreType::value_type& node)
{
diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx
index 96b47b0..b9c5572 100644
--- a/sc/source/core/data/dpgroup.cxx
+++ b/sc/source/core/data/dpgroup.cxx
@@ -49,7 +49,7 @@ using ::com::sun::star::uno::UNO_QUERY;
using ::com::sun::star::uno::UNO_QUERY_THROW;
using ::std::vector;
-using ::std::shared_ptr;
+using ::boost::shared_ptr;
const sal_uInt16 SC_DP_LEAPYEAR = 1648; // arbitrary leap year for date calculations
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 757f274..db4ccd2 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -83,7 +83,7 @@
using namespace com::sun::star;
using ::std::vector;
using ::std::unary_function;
-using ::std::shared_ptr;
+using ::boost::shared_ptr;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::UNO_QUERY;
diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index 2e97565..fc86515 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -68,7 +68,7 @@ static void lcl_SetBoolProperty( const uno::Reference<beans::XPropertySet>& xPro
ScDPSaveMember::ScDPSaveMember(const OUString& rName) :
aName( rName ),
- mpLayoutName(nullptr),
+ mpLayoutName(NULL),
nVisibleMode( SC_DPSAVEMODE_DONTKNOW ),
nShowDetailsMode( SC_DPSAVEMODE_DONTKNOW )
{
@@ -76,7 +76,7 @@ ScDPSaveMember::ScDPSaveMember(const OUString& rName) :
ScDPSaveMember::ScDPSaveMember(const ScDPSaveMember& r) :
aName( r.aName ),
- mpLayoutName(nullptr),
+ mpLayoutName(NULL),
nVisibleMode( r.nVisibleMode ),
nShowDetailsMode( r.nShowDetailsMode )
{
@@ -191,8 +191,8 @@ void ScDPSaveMember::Dump(int nIndent) const
ScDPSaveDimension::ScDPSaveDimension(const OUString& rName, bool bDataLayout) :
aName( rName ),
- mpLayoutName(nullptr),
- mpSubtotalName(nullptr),
+ mpLayoutName(NULL),
+ mpSubtotalName(NULL),
bIsDataLayout( bDataLayout ),
bDupFlag( false ),
nOrientation( sheet::DataPilotFieldOrientation_HIDDEN ),
@@ -202,18 +202,18 @@ ScDPSaveDimension::ScDPSaveDimension(const OUString& rName, bool bDataLayout) :
bRepeatItemLabels( false ),
bSubTotalDefault( true ),
nSubTotalCount( 0 ),
- pSubTotalFuncs( nullptr ),
- pReferenceValue( nullptr ),
- pSortInfo( nullptr ),
- pAutoShowInfo( nullptr ),
- pLayoutInfo( nullptr )
+ pSubTotalFuncs( NULL ),
+ pReferenceValue( NULL ),
+ pSortInfo( NULL ),
+ pAutoShowInfo( NULL ),
+ pLayoutInfo( NULL )
{
}
ScDPSaveDimension::ScDPSaveDimension(const ScDPSaveDimension& r) :
aName( r.aName ),
- mpLayoutName(nullptr),
- mpSubtotalName(nullptr),
+ mpLayoutName(NULL),
+ mpSubtotalName(NULL),
bIsDataLayout( r.bIsDataLayout ),
bDupFlag( r.bDupFlag ),
nOrientation( r.nOrientation ),
@@ -223,7 +223,7 @@ ScDPSaveDimension::ScDPSaveDimension(const ScDPSaveDimension& r) :
bRepeatItemLabels( r.bRepeatItemLabels ),
bSubTotalDefault( r.bSubTotalDefault ),
nSubTotalCount( r.nSubTotalCount ),
- pSubTotalFuncs( nullptr )
+ pSubTotalFuncs( NULL )
{
if ( nSubTotalCount && r.pSubTotalFuncs )
{
@@ -242,19 +242,19 @@ ScDPSaveDimension::ScDPSaveDimension(const ScDPSaveDimension& r) :
if (r.pReferenceValue)
pReferenceValue = new sheet::DataPilotFieldReference( *(r.pReferenceValue) );
else
- pReferenceValue = nullptr;
+ pReferenceValue = NULL;
if (r.pSortInfo)
pSortInfo = new sheet::DataPilotFieldSortInfo( *(r.pSortInfo) );
else
- pSortInfo = nullptr;
+ pSortInfo = NULL;
if (r.pAutoShowInfo)
pAutoShowInfo = new sheet::DataPilotFieldAutoShowInfo( *(r.pAutoShowInfo) );
else
- pAutoShowInfo = nullptr;
+ pAutoShowInfo = NULL;
if (r.pLayoutInfo)
pLayoutInfo = new sheet::DataPilotFieldLayoutInfo( *(r.pLayoutInfo) );
else
- pLayoutInfo = nullptr;
+ pLayoutInfo = NULL;
if (r.mpLayoutName)
mpLayoutName.reset(new OUString(*r.mpLayoutName));
if (r.mpSubtotalName)
@@ -383,7 +383,7 @@ void ScDPSaveDimension::SetSubTotals(long nCount, const sal_uInt16* pFuncs)
pSubTotalFuncs[i] = pFuncs[i];
}
else
- pSubTotalFuncs = nullptr;
+ pSubTotalFuncs = NULL;
bSubTotalDefault = false;
}
@@ -465,7 +465,7 @@ void ScDPSaveDimension::SetReferenceValue(const sheet::DataPilotFieldReference*
if (pNew)
pReferenceValue = new sheet::DataPilotFieldReference(*pNew);
else
- pReferenceValue = nullptr;
+ pReferenceValue = NULL;
}
void ScDPSaveDimension::SetSortInfo(const sheet::DataPilotFieldSortInfo* pNew)
@@ -474,7 +474,7 @@ void ScDPSaveDimension::SetSortInfo(const sheet::DataPilotFieldSortInfo* pNew)
if (pNew)
pSortInfo = new sheet::DataPilotFieldSortInfo(*pNew);
else
- pSortInfo = nullptr;
+ pSortInfo = NULL;
}
void ScDPSaveDimension::SetAutoShowInfo(const sheet::DataPilotFieldAutoShowInfo* pNew)
@@ -483,7 +483,7 @@ void ScDPSaveDimension::SetAutoShowInfo(const sheet::DataPilotFieldAutoShowInfo*
if (pNew)
pAutoShowInfo = new sheet::DataPilotFieldAutoShowInfo(*pNew);
else
- pAutoShowInfo = nullptr;
+ pAutoShowInfo = NULL;
}
void ScDPSaveDimension::SetLayoutInfo(const sheet::DataPilotFieldLayoutInfo* pNew)
@@ -492,14 +492,14 @@ void ScDPSaveDimension::SetLayoutInfo(const sheet::DataPilotFieldLayoutInfo* pNe
if (pNew)
pLayoutInfo = new sheet::DataPilotFieldLayoutInfo(*pNew);
else
- pLayoutInfo = nullptr;
+ pLayoutInfo = NULL;
}
void ScDPSaveDimension::SetCurrentPage( const OUString* pPage )
{
// We use member's visibility attribute to filter by page dimension.
- // pPage == nullptr -> all members visible.
+ // pPage == NULL -> all members visible.
MemberList::iterator it = maMemberList.begin(), itEnd = maMemberList.end();
for (; it != itEnd; ++it)
{
@@ -527,7 +527,7 @@ ScDPSaveMember* ScDPSaveDimension::GetExistingMemberByName(const OUString& rName
MemberHash::const_iterator res = maMemberHash.find (rName);
if (res != maMemberHash.end())
return res->second;
- return nullptr;
+ return NULL;
}
ScDPSaveMember* ScDPSaveDimension::GetMemberByName(const OUString& rName)
@@ -797,7 +797,7 @@ void ScDPSaveDimension::Dump(int nIndent) const
#endif
ScDPSaveData::ScDPSaveData() :
- pDimensionData( nullptr ),
+ pDimensionData( NULL ),
nColumnGrandMode( SC_DPSAVEMODE_DONTKNOW ),
nRowGrandMode( SC_DPSAVEMODE_DONTKNOW ),
nIgnoreEmptyMode( SC_DPSAVEMODE_DONTKNOW ),
@@ -805,7 +805,7 @@ ScDPSaveData::ScDPSaveData() :
bFilterButton( true ),
bDrillDown( true ),
mbDimensionMembersBuilt(false),
- mpGrandTotalName(nullptr)
+ mpGrandTotalName(NULL)
{
}
@@ -817,13 +817,13 @@ ScDPSaveData::ScDPSaveData(const ScDPSaveData& r) :
bFilterButton( r.bFilterButton ),
bDrillDown( r.bDrillDown ),
mbDimensionMembersBuilt(r.mbDimensionMembersBuilt),
- mpGrandTotalName(nullptr),
- mpDimOrder(nullptr)
+ mpGrandTotalName(NULL),
+ mpDimOrder(NULL)
{
if ( r.pDimensionData )
pDimensionData = new ScDPDimensionSaveData( *r.pDimensionData );
else
- pDimensionData = nullptr;
+ pDimensionData = NULL;
aDimList = r.aDimList.clone();
@@ -971,7 +971,7 @@ ScDPSaveDimension* ScDPSaveData::GetExistingDimensionByName(const OUString& rNam
if (iter->GetName() == rName && !iter->IsDataLayout() )
return const_cast<ScDPSaveDimension*>(&(*iter));
}
- return nullptr; // don't create new
+ return NULL; // don't create new
}
ScDPSaveDimension* ScDPSaveData::GetNewDimensionByName(const OUString& rName)
@@ -1003,7 +1003,7 @@ ScDPSaveDimension* ScDPSaveData::GetExistingDataLayoutDimension() const
if ( iter->IsDataLayout() )
return const_cast<ScDPSaveDimension*>(&(*iter));
}
- return nullptr;
+ return NULL;
}
ScDPSaveDimension* ScDPSaveData::DuplicateDimension(const OUString& rName)
@@ -1012,7 +1012,7 @@ ScDPSaveDimension* ScDPSaveData::DuplicateDimension(const OUString& rName)
ScDPSaveDimension* pOld = GetExistingDimensionByName(rName);
if (!pOld)
- return nullptr;
+ return NULL;
ScDPSaveDimension* pNew = new ScDPSaveDimension( *pOld );
AddDimension(pNew);
@@ -1053,7 +1053,7 @@ ScDPSaveDimension* ScDPSaveData::GetInnermostDimension(sal_uInt16 nOrientation)
return const_cast<ScDPSaveDimension*>(&(*iter));
}
- return nullptr;
+ return NULL;
}
ScDPSaveDimension* ScDPSaveData::GetFirstDimension(sheet::DataPilotFieldOrientation eOrientation)
@@ -1064,7 +1064,7 @@ ScDPSaveDimension* ScDPSaveData::GetFirstDimension(sheet::DataPilotFieldOrientat
if (iter->GetOrientation() == eOrientation && !iter->IsDataLayout())
return const_cast<ScDPSaveDimension*>(&(*iter));
}
- return nullptr;
+ return NULL;
}
long ScDPSaveData::GetDataDimensionCount() const
@@ -1326,7 +1326,7 @@ void ScDPSaveData::RemoveAllGroupDimensions( const OUString& rSrcDimName, std::v
{
// still get the same group dimension?
OSL_FAIL("couldn't remove group dimension");
- pExistingGroup = nullptr; // avoid endless loop
+ pExistingGroup = NULL; // avoid endless loop
}
}
}
@@ -1344,7 +1344,7 @@ void ScDPSaveData::SetDimensionData( const ScDPDimensionSaveData* pNew )
if ( pNew )
pDimensionData = new ScDPDimensionSaveData( *pNew );
else
- pDimensionData = nullptr;
+ pDimensionData = NULL;
}
void ScDPSaveData::BuildAllDimensionMembers(ScDPTableData* pData)
@@ -1495,7 +1495,7 @@ ScDPSaveDimension* ScDPSaveData::AppendNewDimension(const OUString& rName, bool
{
if (ScDPUtil::isDuplicateDimension(rName))
// This call is for original dimensions only.
- return nullptr;
+ return NULL;
ScDPSaveDimension* pNew = new ScDPSaveDimension(rName, bDataLayout);
aDimList.push_back(pNew);
diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx
index 28667b5..7ccaa73 100644
--- a/sc/source/core/data/dptabres.cxx
+++ b/sc/source/core/data/dptabres.cxx
@@ -37,9 +37,9 @@
#include <math.h>
#include <float.h>
#include <algorithm>
-#include <memory>
#include <unordered_map>
#include <boost/checked_delete.hpp>
+#include <boost/scoped_ptr.hpp>
#include <com/sun/star/sheet/DataResultFlags.hpp>
#include <com/sun/star/sheet/MemberResultFlags.hpp>
@@ -1505,7 +1505,7 @@ void ScDPResultMember::FillDataResults(
ScDPResultFilterContext& rFilterCxt, uno::Sequence<uno::Sequence<sheet::DataResult> >& rSequence,
long nMeasure) const
{
- std::unique_ptr<FilterStack> pFilterStack;
+ boost::scoped_ptr<FilterStack> pFilterStack;
const ScDPMember* pDPMember = GetDPMember();
if (pDPMember)
{
@@ -2009,7 +2009,7 @@ void ScDPDataMember::FillDataRow(
uno::Sequence<sheet::DataResult>& rSequence, long nMeasure, bool bIsSubTotalRow,
const ScDPSubTotalState& rSubState) const
{
- std::unique_ptr<FilterStack> pFilterStack;
+ boost::scoped_ptr<FilterStack> pFilterStack;
if (pResultMember)
{
// Topmost data member (pResultMember=NULL) doesn't need to be handled
diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx
index bd9950b..5a14a6f 100644
--- a/sc/source/core/data/dptabsrc.cxx
+++ b/sc/source/core/data/dptabsrc.cxx
@@ -98,17 +98,17 @@ static void lcl_SetBoolInAny( uno::Any& rAny, bool bValue )
ScDPSource::ScDPSource( ScDPTableData* pD ) :
pData( pD ),
- pDimensions( nullptr ),
+ pDimensions( NULL ),
bColumnGrand( true ), // default is true
bRowGrand( true ),
bIgnoreEmptyRows( false ),
bRepeatIfEmpty( false ),
nDupCount( 0 ),
- pResData( nullptr ),
- pColResRoot( nullptr ),
- pRowResRoot( nullptr ),
- pColResults( nullptr ),
- pRowResults( nullptr ),
+ pResData( NULL ),
+ pColResRoot( NULL ),
+ pRowResRoot( NULL ),
+ pColResults( NULL ),
+ pRowResults( NULL ),
bResultOverflow( false ),
bPageFiltered( false )
{
@@ -160,7 +160,7 @@ long ScDPSource::GetDataDimensionCount()
ScDPDimension* ScDPSource::GetDataDimension(long nIndex)
{
if (nIndex < 0 || static_cast<size_t>(nIndex) >= maDataDims.size())
- return nullptr;
+ return NULL;
long nDimIndex = maDataDims[nIndex];
return GetDimensionsObject()->getByIndex(nDimIndex);
@@ -539,8 +539,8 @@ void ScDPSource::disposeData()
DELETEZ(pResData);
delete[] pColResults;
delete[] pRowResults;
- pColResults = nullptr;
- pRowResults = nullptr;
+ pColResults = NULL;
+ pRowResults = NULL;
aColLevelList.clear();
aRowLevelList.clear();
}
@@ -548,7 +548,7 @@ void ScDPSource::disposeData()
if ( pDimensions )
{
pDimensions->release(); // ref-counted
- pDimensions = nullptr; // settings have to be applied (from SaveData) again!
+ pDimensions = NULL; // settings have to be applied (from SaveData) again!
}
SetDupCount( 0 );
@@ -999,7 +999,7 @@ void ScDPSource::FillLevelList( sal_uInt16 nOrientation, std::vector<ScDPLevel*>
{
rList.clear();
- std::vector<long>* pDimIndex = nullptr;
+ std::vector<long>* pDimIndex = NULL;
switch (nOrientation)
{
case sheet::DataPilotFieldOrientation_COLUMN:
@@ -1070,7 +1070,7 @@ void ScDPSource::FillMemberResults()
long nPos = 0;
pColResRoot->FillMemberResults( pColResults, nPos, pResData->GetColStartMeasure(),
- true, nullptr, nullptr );
+ true, NULL, NULL );
}
FillLevelList( sheet::DataPilotFieldOrientation_ROW, aRowLevelList );
@@ -1084,7 +1084,7 @@ void ScDPSource::FillMemberResults()
long nPos = 0;
pRowResRoot->FillMemberResults( pRowResults, nPos, pResData->GetRowStartMeasure(),
- true, nullptr, nullptr );
+ true, NULL, NULL );
}
}
}
@@ -1108,7 +1108,7 @@ const uno::Sequence<sheet::MemberResult>* ScDPSource::GetMemberResults( ScDPLeve
if ( pRowLevel == pLevel )
return pRowResults+i;
}
- return nullptr;
+ return NULL;
}
// XPropertySet
@@ -1211,7 +1211,7 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScDPSource )
ScDPDimensions::ScDPDimensions( ScDPSource* pSrc ) :
pSource( pSrc ),
- ppDims( nullptr )
+ ppDims( NULL )
{
//TODO: hold pSource
@@ -1245,7 +1245,7 @@ void ScDPDimensions::CountChanged()
for (i=0; i<nCopy; i++) // copy existing dims
ppNew[i] = ppDims[i];
for (i=nCopy; i<nNewCount; i++) // clear additional pointers
- ppNew[i] = nullptr;
+ ppNew[i] = NULL;
for (i=nCopy; i<nDimCount; i++) // delete old dims if count is decreased
if ( ppDims[i] )
ppDims[i]->release(); // ref-counted
@@ -1322,7 +1322,7 @@ ScDPDimension* ScDPDimensions::getByIndex(long nIndex) const
{
const_cast<ScDPDimensions*>(this)->ppDims = new ScDPDimension*[nDimCount];
for (long i=0; i<nDimCount; i++)
- ppDims[i] = nullptr;
+ ppDims[i] = NULL;
}
if ( !ppDims[nIndex] )
{
@@ -1333,20 +1333,20 @@ ScDPDimension* ScDPDimensions::getByIndex(long nIndex) const
return ppDims[nIndex];
}
- return nullptr; //TODO: exception?
+ return NULL; //TODO: exception?
}
ScDPDimension::ScDPDimension( ScDPSource* pSrc, long nD ) :
pSource( pSrc ),
nDim( nD ),
- pHierarchies( nullptr ),
+ pHierarchies( NULL ),
nUsedHier( 0 ),
nFunction( SUBTOTAL_FUNC_SUM ), // sum is default
- mpLayoutName(nullptr),
- mpSubtotalName(nullptr),
+ mpLayoutName(NULL),
+ mpSubtotalName(NULL),
nSourceDim( -1 ),
bHasSelectedPage( false ),
- pSelectedData( nullptr ),
+ pSelectedData( NULL ),
mbHasHiddenMember(false)
{
//TODO: hold pSource
@@ -1690,7 +1690,7 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScDPDimension )
ScDPHierarchies::ScDPHierarchies( ScDPSource* pSrc, long nD ) :
pSource( pSrc ),
nDim( nD ),
- ppHiers( nullptr )
+ ppHiers( NULL )
{
//TODO: hold pSource
@@ -1779,7 +1779,7 @@ ScDPHierarchy* ScDPHierarchies::getByIndex(long nIndex) const
{
const_cast<ScDPHierarchies*>(this)->ppHiers = new ScDPHierarchy*[nHierCount];
for (long i=0; i<nHierCount; i++)
- ppHiers[i] = nullptr;
+ ppHiers[i] = NULL;
}
if ( !ppHiers[nIndex] )
{
@@ -1790,14 +1790,14 @@ ScDPHierarchy* ScDPHierarchies::getByIndex(long nIndex) const
return ppHiers[nIndex];
}
- return nullptr; //TODO: exception?
+ return NULL; //TODO: exception?
}
ScDPHierarchy::ScDPHierarchy( ScDPSource* pSrc, long nD, long nH ) :
pSource( pSrc ),
nDim( nD ),
nHier( nH ),
- pLevels( nullptr )
+ pLevels( NULL )
{
//TODO: hold pSource
}
@@ -1856,7 +1856,7 @@ ScDPLevels::ScDPLevels( ScDPSource* pSrc, long nD, long nH ) :
pSource( pSrc ),
nDim( nD ),
nHier( nH ),
- ppLevs( nullptr )
+ ppLevs( NULL )
{
//TODO: hold pSource
@@ -1955,7 +1955,7 @@ ScDPLevel* ScDPLevels::getByIndex(long nIndex) const
{
const_cast<ScDPLevels*>(this)->ppLevs = new ScDPLevel*[nLevCount];
for (long i=0; i<nLevCount; i++)
- ppLevs[i] = nullptr;
+ ppLevs[i] = NULL;
}
if ( !ppLevs[nIndex] )
{
@@ -1966,7 +1966,7 @@ ScDPLevel* ScDPLevels::getByIndex(long nIndex) const
return ppLevs[nIndex];
}
- return nullptr; //TODO: exception?
+ return NULL; //TODO: exception?
}
class ScDPGlobalMembersOrder
@@ -2003,7 +2003,7 @@ ScDPLevel::ScDPLevel( ScDPSource* pSrc, long nD, long nH, long nL ) :
nDim( nD ),
nHier( nH ),
nLev( nL ),
- pMembers( nullptr ),
+ pMembers( NULL ),
aSortInfo( EMPTY_OUSTRING, sal_True, sheet::DataPilotFieldSortMode::NAME ), // default: sort by name
nSortMeasure( 0 ),
nAutoMeasure( 0 ),
@@ -2291,7 +2291,7 @@ ScDPMembers::ScDPMembers( ScDPSource* pSrc, long nD, long nH, long nL ) :
{
case SC_DAPI_LEVEL_YEAR:
{
- const ScDPItemData* pLastNumData = nullptr;
+ const ScDPItemData* pLastNumData = NULL;
for ( SCROW n = 0 ;n <GetSrcItemsCount() ; n-- )
{
const ScDPItemData* pData = GetSrcItemDataByIndex( n );
@@ -2534,7 +2534,7 @@ ScDPMember* ScDPMembers::getByIndex(long nIndex) const
return maMembers[nIndex].get();
}
- return nullptr; //TODO: exception?
+ return NULL; //TODO: exception?
}
ScDPMember::ScDPMember(
@@ -2544,7 +2544,7 @@ ScDPMember::ScDPMember(
nHier( nH ),
nLev( nL ),
mnDataId( nIndex ),
- mpLayoutName(nullptr),
+ mpLayoutName(NULL),
nPosition( -1 ),
bVisible( true ),
bShowDet( true )
@@ -2701,7 +2701,7 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScDPMember )
const ScDPCache* ScDPSource::GetCache()
{
OSL_ENSURE( GetData() , "empty ScDPTableData pointer");
- return ( GetData()!=nullptr ) ? &GetData()->GetCacheTable().getCache() : nullptr ;
+ return ( GetData()!=NULL ) ? &GetData()->GetCacheTable().getCache() : NULL ;
}
const ScDPItemData* ScDPMember::GetItemData() const
@@ -2725,7 +2725,7 @@ const ScDPItemData* ScDPMembers::GetSrcItemDataByIndex(SCROW nIndex)
{
const std::vector< SCROW >& memberIds = pSource->GetData()->GetColumnEntries( nDim );
if ( nIndex >= (long )(memberIds.size()) || nIndex < 0 )
- return nullptr;
+ return NULL;
SCROW nId = memberIds[ nIndex ];
return pSource->GetItemDataById( nDim, nId );
}
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index cb3764b..07d19a3 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -62,7 +62,7 @@
#include <grouparealistener.hxx>
#include <officecfg/Office/Common.hxx>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
#include <boost/ptr_container/ptr_map.hpp>
using namespace formula;
@@ -2985,7 +2985,7 @@ bool ScFormulaCell::UpdateReferenceOnShift(
// on reference update. Bail out.
return bCellStateChanged;
- std::unique_ptr<ScTokenArray> pOldCode;
+ boost::scoped_ptr<ScTokenArray> pOldCode;
if (pUndoDoc)
pOldCode.reset(pCode->Clone());
@@ -3107,7 +3107,7 @@ bool ScFormulaCell::UpdateReferenceOnMove(
return false;
bool bCellStateChanged = false;
- std::unique_ptr<ScTokenArray> pOldCode;
+ boost::scoped_ptr<ScTokenArray> pOldCode;
if (pUndoDoc)
pOldCode.reset(pCode->Clone());
@@ -3230,7 +3230,7 @@ bool ScFormulaCell::UpdateReferenceOnCopy(
// on reference update. Bail out.
return false;
- std::unique_ptr<ScTokenArray> pOldCode;
+ boost::scoped_ptr<ScTokenArray> pOldCode;
if (pUndoDoc)
pOldCode.reset(pCode->Clone());
diff --git a/sc/source/core/data/funcdesc.cxx b/sc/source/core/data/funcdesc.cxx
index 6a4ac47..39d983c 100644
--- a/sc/source/core/data/funcdesc.cxx
+++ b/sc/source/core/data/funcdesc.cxx
@@ -34,8 +34,8 @@
#include <tools/resid.hxx>
#include <unotools/collatorwrapper.hxx>
-#include <memory>
#include <numeric>
+#include <boost/scoped_ptr.hpp>
class ScFuncRes : public Resource
{
@@ -395,7 +395,7 @@ ScFunctionList::ScFunctionList() :
for (sal_uInt16 k = 0; k < SAL_N_ELEMENTS(nDescBlock); ++k)
{
- std::unique_ptr<ScResourcePublisher> pBlock( new ScResourcePublisher( ScResId( nDescBlock[k] ) ) );
+ boost::scoped_ptr<ScResourcePublisher> pBlock( new ScResourcePublisher( ScResId( nDescBlock[k] ) ) );
// Browse for all possible OpCodes. This is not the fastest method, but
// otherwise the sub resources within the resource blocks and the
// resource blocks themselves would had to be ordered according to
@@ -767,7 +767,7 @@ OUString ScFunctionMgr::GetCategoryName(sal_uInt32 _nCategoryNumber )
return OUString();
}
- std::unique_ptr<ScResourcePublisher> pCategories( new ScResourcePublisher( ScResId( RID_FUNCTION_CATEGORIES ) ) );
+ boost::scoped_ptr<ScResourcePublisher> pCategories( new ScResourcePublisher( ScResId( RID_FUNCTION_CATEGORIES ) ) );
return SC_RESSTR(static_cast<sal_uInt16>(_nCategoryNumber));
}
diff --git a/sc/source/core/data/listenercontext.cxx b/sc/source/core/data/listenercontext.cxx
index 75010007..2745749 100644
--- a/sc/source/core/data/listenercontext.cxx
+++ b/sc/source/core/data/listenercontext.cxx
@@ -17,7 +17,7 @@ StartListeningContext::StartListeningContext(ScDocument& rDoc) :
mrDoc(rDoc), mpSet(new ColumnBlockPositionSet(rDoc)) {}
StartListeningContext::StartListeningContext(
- ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet) :
+ ScDocument& rDoc, const boost::shared_ptr<ColumnBlockPositionSet>& pSet) :
mrDoc(rDoc), mpSet(pSet) {}
ColumnBlockPosition* StartListeningContext::getBlockPosition(SCTAB nTab, SCCOL nCol)
@@ -30,7 +30,7 @@ EndListeningContext::EndListeningContext(ScDocument& rDoc, ScTokenArray* pOldCod
mpOldCode(pOldCode), maPosDelta(0,0,0) {}
EndListeningContext::EndListeningContext(
- ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet, ScTokenArray* pOldCode) :
+ ScDocument& rDoc, const boost::shared_ptr<ColumnBlockPositionSet>& pSet, ScTokenArray* pOldCode) :
mrDoc(rDoc), maSet(false), mpPosSet(pSet),
mpOldCode(pOldCode), maPosDelta(0,0,0) {}
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 9ddf3b5..8c09165 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -67,7 +67,7 @@ ScProgress* GetProgressBar(
// if the total number of rows is less than 1000, don't even bother
// with the progress bar because drawing progress bar can be very
// expensive especially in GTK.
- return nullptr;
+ return NULL;
}
if (pOuterProgress)
@@ -77,7 +77,7 @@ ScProgress* GetProgressBar(
return new ScProgress(
pDoc->GetDocumentShell(), ScGlobal::GetRscString(STR_PROGRESS_HEIGHTING), nTotalCount);
- return nullptr;
+ return NULL;
}
void GetOptimalHeightsInColumn(
@@ -236,32 +236,32 @@ ScTable::ScTable( ScDocument* pDoc, SCTAB nNewTab, const OUString& rNewName,
nRepeatEndX( SCCOL_REPEAT_NONE ),
nRepeatStartY( SCROW_REPEAT_NONE ),
nRepeatEndY( SCROW_REPEAT_NONE ),
- pTabProtection( nullptr ),
- pColWidth( nullptr ),
- mpRowHeights( static_cast<ScFlatUInt16RowSegments*>(nullptr) ),
- pColFlags( nullptr ),
- pRowFlags( nullptr ),
+ pTabProtection( NULL ),
+ pColWidth( NULL ),
+ mpRowHeights( static_cast<ScFlatUInt16RowSegments*>(NULL) ),
+ pColFlags( NULL ),
+ pRowFlags( NULL ),
mpHiddenCols(new ScFlatBoolColSegments),
mpHiddenRows(new ScFlatBoolRowSegments),
mpFilteredCols(new ScFlatBoolColSegments),
mpFilteredRows(new ScFlatBoolRowSegments),
- pOutlineTable( nullptr ),
- pSheetEvents( nullptr ),
+ pOutlineTable( NULL ),
+ pSheetEvents( NULL ),
nTableAreaX( 0 ),
nTableAreaY( 0 ),
nTab( nNewTab ),
pDocument( pDoc ),
- pSearchText ( nullptr ),
- pSortCollator( nullptr ),
- pRepeatColRange( nullptr ),
- pRepeatRowRange( nullptr ),
+ pSearchText ( NULL ),
+ pSortCollator( NULL ),
+ pRepeatColRange( NULL ),
+ pRepeatRowRange( NULL ),
nLockCount( 0 ),
- pScenarioRanges( nullptr ),
+ pScenarioRanges( NULL ),
aScenarioColor( COL_LIGHTGRAY ),
aTabBgColor( COL_AUTO ),
nScenarioFlags( 0 ),
- pDBDataNoName(nullptr),
- mpRangeName(nullptr),
+ pDBDataNoName(NULL),
+ mpRangeName(NULL),
mpCondFormatList( new ScConditionalFormatList() ),
bScenario(false),
bLayoutRTL(false),
@@ -455,7 +455,7 @@ long ScTable::GetNeededSize( SCCOL nCol, SCROW nRow,
aOptions.bTotalSize = bTotalSize;
return aCol[nCol].GetNeededSize
- ( nRow, pDev, nPPTX, nPPTY, rZoomX, rZoomY, bWidth, aOptions, nullptr );
+ ( nRow, pDev, nPPTX, nPPTY, rZoomX, rZoomY, bWidth, aOptions, NULL );
}
bool ScTable::SetOptimalHeight(
@@ -1071,7 +1071,7 @@ SCCOL ScTable::FindNextVisibleCol( SCCOL nCol, bool bRight ) const
{
nCol++;
SCCOL nEnd = 0;
- bool bHidden = pDocument->ColHidden(nCol, nTab, nullptr, &nEnd);
+ bool bHidden = pDocument->ColHidden(nCol, nTab, NULL, &nEnd);
if(bHidden)
nCol = nEnd +1;
@@ -1081,7 +1081,7 @@ SCCOL ScTable::FindNextVisibleCol( SCCOL nCol, bool bRight ) const
{
nCol--;
SCCOL nStart = MAXCOL;
- bool bHidden = pDocument->ColHidden(nCol, nTab, &nStart, nullptr);
+ bool bHidden = pDocument->ColHidden(nCol, nTab, &nStart, NULL);
if(bHidden)
nCol = nStart - 1;
@@ -1100,7 +1100,7 @@ SCCOL ScTable::FindNextVisibleColWithContent( SCCOL nCol, bool bRight, SCROW nRo
{
nCol++;
SCCOL nEndCol = 0;
- bool bHidden = pDocument->ColHidden( nCol, nTab, nullptr, &nEndCol );
+ bool bHidden = pDocument->ColHidden( nCol, nTab, NULL, &nEndCol );
if(bHidden)
{
nCol = nEndCol +1;
@@ -1124,7 +1124,7 @@ SCCOL ScTable::FindNextVisibleColWithContent( SCCOL nCol, bool bRight, SCROW nRo
{
nCol--;
SCCOL nStartCol = MAXCOL;
- bool bHidden = pDocument->ColHidden( nCol, nTab, &nStartCol, nullptr );
+ bool bHidden = pDocument->ColHidden( nCol, nTab, &nStartCol, NULL );
if(bHidden)
{
nCol = nStartCol -1;
@@ -1571,7 +1571,7 @@ void ScTable::UpdateReference(
// updating print ranges is not necessary with multiple print ranges
if ( bRecalcPages && GetPrintRangeCount() <= 1 )
{
- UpdatePageBreaks(nullptr);
+ UpdatePageBreaks(NULL);
pDocument->RepaintRange( ScRange(0,0,nTab,MAXCOL,MAXROW,nTab) );
}
@@ -1730,7 +1730,7 @@ void ScTable::ExtendPrintArea( OutputDevice* pDev,
for (SCCOL i = 0; i <= MAXCOL; ++i)
{
SCCOL nLastCol = i;
- if (ColHidden(i, nullptr, &nLastCol))
+ if (ColHidden(i, NULL, &nLastCol))
{
// Columns are hidden in this range.
aSkipCols.setTrue(i, nLastCol);
@@ -1813,7 +1813,7 @@ void ScTable::MaybeAddExtraColumn(SCCOL& rCol, SCROW nRow, OutputDevice* pDev, d
Fraction aZoom(1,1);
nPixel = aCol[rCol].GetNeededSize(
- nRow, pDev, nPPTX, nPPTY, aZoom, aZoom, true, aOptions, nullptr );
+ nRow, pDev, nPPTX, nPPTY, aZoom, aZoom, true, aOptions, NULL );
aCol[rCol].SetTextWidth(nRow, static_cast<sal_uInt16>(nPixel));
}
@@ -1898,7 +1898,7 @@ void ScTable::CopyPrintRange(const ScTable& rTable)
bPrintEntireSheet = rTable.bPrintEntireSheet;
delete pRepeatColRange;
- pRepeatColRange = nullptr;
+ pRepeatColRange = NULL;
if (rTable.pRepeatColRange)
{
pRepeatColRange = new ScRange(*rTable.pRepeatColRange);
@@ -1907,7 +1907,7 @@ void ScTable::CopyPrintRange(const ScTable& rTable)
}
delete pRepeatRowRange;
- pRepeatRowRange = nullptr;
+ pRepeatRowRange = NULL;
if (rTable.pRepeatRowRange)
{
pRepeatRowRange = new ScRange(*rTable.pRepeatRowRange);
@@ -1970,7 +1970,7 @@ void ScTable::SetPrintEntireSheet()
const ScRange* ScTable::GetPrintRange(sal_uInt16 nPos) const
{
- return (nPos < GetPrintRangeCount()) ? &aPrintRanges[ nPos ] : nullptr;
+ return (nPos < GetPrintRangeCount()) ? &aPrintRanges[ nPos ] : NULL;
}
void ScTable::FillPrintSaver( ScPrintSaverTab& rSaveTab ) const
@@ -1987,7 +1987,7 @@ void ScTable::RestorePrintRanges( const ScPrintSaverTab& rSaveTab )
SetRepeatRowRange( rSaveTab.GetRepeatRow() );
InvalidatePageBreaks(); // #i117952# forget page breaks for an old print range
- UpdatePageBreaks(nullptr);
+ UpdatePageBreaks(NULL);
}
SCROW ScTable::VisibleDataCellIterator::ROW_NOT_FOUND = -1;
@@ -2203,7 +2203,7 @@ ScRefCellValue ScTable::GetRefCellValue( SCCOL nCol, SCROW nRow )
SvtBroadcaster* ScTable::GetBroadcaster( SCCOL nCol, SCROW nRow )
{
if (!ValidColRow(nCol, nRow))
- return nullptr;
+ return NULL;
return aCol[nCol].GetBroadcaster(nRow);
}
@@ -2268,7 +2268,7 @@ void ScTable::DumpFormulaGroups( SCCOL nCol ) const
const SvtBroadcaster* ScTable::GetBroadcaster( SCCOL nCol, SCROW nRow ) const
{
if (!ValidColRow(nCol, nRow))
- return nullptr;
+ return NULL;
return aCol[nCol].GetBroadcaster(nRow);
}
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 3b9c02a..f28be30 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -863,7 +863,7 @@ void ScTable::TransposeClip( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
SCROW nAttrRow1;
SCROW nAttrRow2;
const ScPatternAttr* pPattern;
- std::unique_ptr<ScAttrIterator> pAttrIter(aCol[nCol].CreateAttrIterator( nRow1, nRow2 ));
+ boost::scoped_ptr<ScAttrIterator> pAttrIter(aCol[nCol].CreateAttrIterator( nRow1, nRow2 ));
while ( (pPattern = pAttrIter->Next( nAttrRow1, nAttrRow2 )) != 0 )
{
if ( !IsDefaultItem( pPattern ) )
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 706e0e5..9775e14a 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -67,10 +67,11 @@
#include <svl/sharedstringpool.hxx>
-#include <memory>
#include <unordered_set>
#include <vector>
#include <boost/checked_delete.hpp>
+#include <boost/scoped_ptr.hpp>
+#include <memory>
#include <boost/noncopyable.hpp>
#include <mdds/flat_segment_tree.hpp>
@@ -251,7 +252,7 @@ public:
typedef std::vector<Row*> RowsType;
private:
- std::unique_ptr<RowsType> mpRows; /// row-wise data table for sort by row operation.
+ boost::scoped_ptr<RowsType> mpRows; /// row-wise data table for sort by row operation.
ScSortInfo*** pppInfo;
SCSIZE nCount;
@@ -868,7 +869,7 @@ class ListenerStartAction : public sc::ColumnSpanSet::ColumnAction
{
ScColumn* mpCol;
- std::shared_ptr<sc::ColumnBlockPositionSet> mpPosSet;
+ boost::shared_ptr<sc::ColumnBlockPositionSet> mpPosSet;
sc::StartListeningContext maStartCxt;
sc::EndListeningContext maEndCxt;
@@ -1707,7 +1708,7 @@ void ScTable::Sort(
if(pProgress)
pProgress->SetState( 0, nLastRow-nRow1 );
- std::unique_ptr<ScSortInfoArray> pArray(CreateSortInfoArray(aSortParam, nRow1, nLastRow, bKeepQuery, bUpdateRefs));
+ boost::scoped_ptr<ScSortInfoArray> pArray(CreateSortInfoArray(aSortParam, nRow1, nLastRow, bKeepQuery, bUpdateRefs));
if ( nLastRow - nRow1 > 255 )
DecoladeRow(pArray.get(), nRow1, nLastRow);
@@ -1734,7 +1735,7 @@ void ScTable::Sort(
if(pProgress)
pProgress->SetState( 0, nLastCol-nCol1 );
- std::unique_ptr<ScSortInfoArray> pArray(CreateSortInfoArray(aSortParam, nCol1, nLastCol, bKeepQuery, bUpdateRefs));
+ boost::scoped_ptr<ScSortInfoArray> pArray(CreateSortInfoArray(aSortParam, nCol1, nLastCol, bKeepQuery, bUpdateRefs));
QuickSort(pArray.get(), nCol1, nLastCol);
SortReorderByColumn(pArray.get(), aSortParam.nRow1, aSortParam.nRow2, aSortParam.bIncludePattern, pProgress);
@@ -1754,7 +1755,7 @@ void ScTable::Reorder( const sc::ReorderParam& rParam, ScProgress* pProgress )
if (rParam.maOrderIndices.empty())
return;
- std::unique_ptr<ScSortInfoArray> pArray(CreateSortInfoArray(rParam));
+ boost::scoped_ptr<ScSortInfoArray> pArray(CreateSortInfoArray(rParam));
if (!pArray)
return;
@@ -2736,7 +2737,7 @@ void ScTable::TopTenQuery( ScQueryParam& rParam )
bSortCollatorInitialized = true;
InitSortCollator( aLocalSortParam );
}
- std::unique_ptr<ScSortInfoArray> pArray(CreateSortInfoArray(aSortParam, nRow1, rParam.nRow2, bGlobalKeepQuery, false));
+ boost::scoped_ptr<ScSortInfoArray> pArray(CreateSortInfoArray(aSortParam, nRow1, rParam.nRow2, bGlobalKeepQuery, false));
DecoladeRow( pArray.get(), nRow1, rParam.nRow2 );
QuickSort( pArray.get(), nRow1, rParam.nRow2 );
ScSortInfo** ppInfo = pArray->GetFirstArray();
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index ee1a29a..5b6479c 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -64,7 +64,7 @@
#include <listenercontext.hxx>
#include <math.h>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
// STATIC DATA -----------------------------------------------------------
@@ -1178,7 +1178,7 @@ void ScTable::FillFormulaVertical(
aCol[nCol].DeleteRanges(aSpans, IDF_VALUE | IDF_DATETIME | IDF_STRING | IDF_FORMULA | IDF_OUTLINE, false);
aCol[nCol].CloneFormulaCell(rSrcCell, sc::CellTextAttr(), aSpans, NULL);
- std::shared_ptr<sc::ColumnBlockPositionSet> pSet(new sc::ColumnBlockPositionSet(*pDocument));
+ boost::shared_ptr<sc::ColumnBlockPositionSet> pSet(new sc::ColumnBlockPositionSet(*pDocument));
sc::StartListeningContext aStartCxt(*pDocument, pSet);
sc::EndListeningContext aEndCxt(*pDocument, pSet);
diff --git a/sc/source/core/data/validat.cxx b/sc/source/core/data/validat.cxx
index e168ec6..42d06a6 100644
--- a/sc/source/core/data/validat.cxx
+++ b/sc/source/core/data/validat.cxx
@@ -51,7 +51,7 @@
#include "scmatrix.hxx"
#include <math.h>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
using namespace formula;
@@ -812,7 +812,7 @@ bool ScValidationData::FillSelectionList(std::vector<ScTypedStrData>& rStrColl,
if( HasSelectionList() )
{
- std::unique_ptr<ScTokenArray> pTokArr( CreateTokenArry(0) );
+ boost::scoped_ptr<ScTokenArray> pTokArr( CreateTokenArry(0) );
// *** try if formula is a string list ***
@@ -865,7 +865,7 @@ bool ScValidationData::IsListValid( ScRefCellValue& rCell, const ScAddress& rPos
5) A formula resulting in a cell/range reference or matrix/array.
*/
- std::unique_ptr< ScTokenArray > pTokArr( CreateTokenArry( 0 ) );
+ boost::scoped_ptr< ScTokenArray > pTokArr( CreateTokenArry( 0 ) );
// *** try if formula is a string list ***
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 8fab03d..b72c317 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -89,6 +89,7 @@ const unsigned long __nan[2] = {0xffffffff, 0x7fffffff};
#include <rtl/digest.h>
+#include <boost/scoped_ptr.hpp>
#include <memory>
using namespace formula;
@@ -949,7 +950,7 @@ class DynamicKernelSlidingArgument : public Base
{
public:
DynamicKernelSlidingArgument( const ScCalcConfig& config, const std::string& s,
- FormulaTreeNodeRef ft, std::shared_ptr<SlidingFunctionBase>& CodeGen,
+ FormulaTreeNodeRef ft, boost::shared_ptr<SlidingFunctionBase>& CodeGen,
int index = 0 ) :
Base(config, s, ft, index), mpCodeGen(CodeGen), mpClmem2(NULL)
{
@@ -1125,7 +1126,7 @@ protected:
bool bIsStartFixed, bIsEndFixed;
const formula::DoubleVectorRefToken* mpDVR;
// from parent nodes
- std::shared_ptr<SlidingFunctionBase> mpCodeGen;
+ boost::shared_ptr<SlidingFunctionBase> mpCodeGen;
// controls whether to invoke the reduction kernel during marshaling or not
cl_mem mpClmem2;
};
@@ -1135,7 +1136,7 @@ class DynamicKernelMixedSlidingArgument : public VectorRef
{
public:
DynamicKernelMixedSlidingArgument( const ScCalcConfig& config, const std::string& s,
- FormulaTreeNodeRef ft, std::shared_ptr<SlidingFunctionBase>& CodeGen,
+ FormulaTreeNodeRef ft, boost::shared_ptr<SlidingFunctionBase>& CodeGen,
int index = 0 ) :
VectorRef(config, s, ft),
mDoubleArgument(mCalcConfig, s, ft, CodeGen, index),
@@ -1249,7 +1250,7 @@ class ParallelReductionVectorRef : public Base
{
public:
ParallelReductionVectorRef( const ScCalcConfig& config, const std::string& s,
- FormulaTreeNodeRef ft, std::shared_ptr<SlidingFunctionBase>& CodeGen,
+ FormulaTreeNodeRef ft, boost::shared_ptr<SlidingFunctionBase>& CodeGen,
int index = 0 ) :
Base(config, s, ft, index), mpCodeGen(CodeGen), mpClmem2(NULL)
{
@@ -1662,7 +1663,7 @@ protected:
bool bIsStartFixed, bIsEndFixed;
const formula::DoubleVectorRefToken* mpDVR;
// from parent nodes
- std::shared_ptr<SlidingFunctionBase> mpCodeGen;
+ boost::shared_ptr<SlidingFunctionBase> mpCodeGen;
// controls whether to invoke the reduction kernel during marshaling or not
cl_mem mpClmem2;
};
@@ -2539,7 +2540,7 @@ public:
private:
SubArgumentsType mvSubArguments;
- std::shared_ptr<SlidingFunctionBase> mpCodeGen;
+ boost::shared_ptr<SlidingFunctionBase> mpCodeGen;
cl_mem mpClmem2;
};
@@ -2553,7 +2554,7 @@ DynamicKernelArgumentRef SoPHelper( const ScCalcConfig& config,
template<class Base>
DynamicKernelArgument* VectorRefFactory( const ScCalcConfig& config, const std::string& s,
const FormulaTreeNodeRef& ft,
- std::shared_ptr<SlidingFunctionBase>& pCodeGen,
+ boost::shared_ptr<SlidingFunctionBase>& pCodeGen,
int index )
{
//Black lists ineligible classes here ..
diff --git a/sc/source/core/opencl/opbase.hxx b/sc/source/core/opencl/opbase.hxx
index 9a49703..ba08714 100644
--- a/sc/source/core/opencl/opbase.hxx
+++ b/sc/source/core/opencl/opbase.hxx
@@ -16,8 +16,8 @@
#include <formula/token.hxx>
#include <formula/vectortoken.hxx>
+#include <boost/shared_ptr.hpp>
#include <boost/noncopyable.hpp>
-#include <memory>
#include <set>
#include "calcconfig.hxx"
@@ -62,7 +62,7 @@ public:
int mLineNumber;
};
-typedef std::shared_ptr<FormulaTreeNode> FormulaTreeNodeRef;
+typedef boost::shared_ptr<FormulaTreeNode> FormulaTreeNodeRef;
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list