summaryrefslogtreecommitdiff
path: root/svx/source/accessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-04 08:45:26 +0200
committerNoel Grandin <noel@peralex.com>2014-04-04 13:44:16 +0200
commit214751e3cc5b154d90963f4abf0a9317733b001b (patch)
tree9d7c0127be2b0e9ada88bcf73e632233bd841f61 /svx/source/accessibility
parent6f349af57ebd6d160b6354c2033c46467da4598a (diff)
cleanup up the EditEngine::GetAttribs call
It was using a bool parameter, but passing various constants through it. Make the constants into an enum, and use the enum in the GetAttribs call. Change-Id: I3010397dfe83b24db3946b9dea2fb37f4393abdd
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r--svx/source/accessibility/AccessibleEmptyEditSource.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/accessibility/AccessibleEmptyEditSource.cxx b/svx/source/accessibility/AccessibleEmptyEditSource.cxx
index 1f5784e3e540..a8b03dc36568 100644
--- a/svx/source/accessibility/AccessibleEmptyEditSource.cxx
+++ b/svx/source/accessibility/AccessibleEmptyEditSource.cxx
@@ -97,8 +97,8 @@ namespace accessibility
// SvxTextForwarder
sal_Int32 GetParagraphCount() const SAL_OVERRIDE { return 1; }
sal_Int32 GetTextLen( sal_Int32 /*nParagraph*/ ) const SAL_OVERRIDE { return 0; }
- OUString GetText( const ESelection& /*rSel*/ ) const SAL_OVERRIDE { return OUString(); }
- SfxItemSet GetAttribs( const ESelection& /*rSel*/, sal_Bool /*bOnlyHardAttrib*/ = 0 ) const SAL_OVERRIDE
+ OUString GetText( const ESelection& /*rSel*/ ) const SAL_OVERRIDE { return OUString(); }
+ SfxItemSet GetAttribs( const ESelection& /*rSel*/, EditEngineAttribs /*nOnlyHardAttrib*/ = EditEngineAttribs_All ) const SAL_OVERRIDE
{
// AW: Very dangerous: The former implementation used a SfxItemPool created on the
// fly which of course was deleted again ASAP. Thus, the returned SfxItemSet was using