diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-30 17:26:48 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-30 17:51:30 +0200 |
commit | 89c72084b23b14780d0799f2f2f32c579212f497 (patch) | |
tree | 5d7aceedbe6be23b302c382e14d5148d460b0b89 /sc/source/ui/Accessibility/AccessibleCell.cxx | |
parent | 741629f48a3fe72fb1e9fb68077446907585e852 (diff) |
sc: std::auto_ptr -> std::unique_ptr
Change-Id: I25468d578de597ff9aeba3ffc850c630fa532767
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleCell.cxx')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleCell.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleCell.cxx b/sc/source/ui/Accessibility/AccessibleCell.cxx index 2989da515245..a15e3f978dbe 100644 --- a/sc/source/ui/Accessibility/AccessibleCell.cxx +++ b/sc/source/ui/Accessibility/AccessibleCell.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <utility> + #include "AccessibleCell.hxx" #include "scitems.hxx" #include <editeng/eeitem.hxx> @@ -388,20 +392,18 @@ ScDocument* ScAccessibleCell::GetDocument(ScTabViewShell* pViewShell) return pDoc; } -SAL_WNODEPRECATED_DECLARATIONS_PUSH -::std::auto_ptr< SvxEditSource > ScAccessibleCell::CreateEditSource(ScTabViewShell* pViewShell, ScAddress aCell, ScSplitPos eSplitPos) +::std::unique_ptr< SvxEditSource > ScAccessibleCell::CreateEditSource(ScTabViewShell* pViewShell, ScAddress aCell, ScSplitPos eSplitPos) { if (IsFormulaMode()) { - return ::std::auto_ptr< SvxEditSource >(); + return ::std::unique_ptr< SvxEditSource >(); } - ::std::auto_ptr < ScAccessibleTextData > pAccessibleCellTextData + ::std::unique_ptr < ScAccessibleTextData > pAccessibleCellTextData ( new ScAccessibleCellTextData( pViewShell, aCell, eSplitPos, this ) ); - ::std::auto_ptr< SvxEditSource > pEditSource (new ScAccessibilityEditSource(pAccessibleCellTextData)); + ::std::unique_ptr< SvxEditSource > pEditSource (new ScAccessibilityEditSource(std::move(pAccessibleCellTextData))); return pEditSource; } -SAL_WNODEPRECATED_DECLARATIONS_POP void ScAccessibleCell::FillDependends(utl::AccessibleRelationSetHelper* pRelationSet) { |