summaryrefslogtreecommitdiff
path: root/chart2/source/controller/accessibility/ChartElementFactory.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/accessibility/ChartElementFactory.hxx')
-rw-r--r--chart2/source/controller/accessibility/ChartElementFactory.hxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/chart2/source/controller/accessibility/ChartElementFactory.hxx b/chart2/source/controller/accessibility/ChartElementFactory.hxx
index 2d0b29b9cb2a..08ae64598bc7 100644
--- a/chart2/source/controller/accessibility/ChartElementFactory.hxx
+++ b/chart2/source/controller/accessibility/ChartElementFactory.hxx
@@ -16,12 +16,12 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_ACCESSIBILITY_CHARTELEMENTFACTORY_HXX
-#define INCLUDED_CHART2_SOURCE_CONTROLLER_ACCESSIBILITY_CHARTELEMENTFACTORY_HXX
+#pragma once
+
+#include <rtl/ref.hxx>
namespace chart
{
-
class AccessibleBase;
struct AccessibleElementInfo;
@@ -31,11 +31,9 @@ public:
/** @return a newly created object (using the new operator) that corresponds
to the given unique id
*/
- static AccessibleBase* CreateChartElement( const AccessibleElementInfo& rAccInfo );
+ static rtl::Reference<AccessibleBase> CreateChartElement(const AccessibleElementInfo& rAccInfo);
};
-} // namespace chart
-
-#endif
+} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */