summaryrefslogtreecommitdiff
path: root/svx/source/accessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-13 18:20:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-13 18:21:36 +0100
commitd1c9e5ee53f8609092ea026639c8f28afec1d36a (patch)
tree192f7722bd0598614a08dd8e5ed13c08da44ca97 /svx/source/accessibility
parent8289bc767ecc88cf07da60ab6a8b850f5c2e7eb4 (diff)
tdf#43157: Fix format string violations in OSL_TRACE etc.
...for a 32-bit build, similar to what ee11e221d2108212619e1bbe7f029e7d9afdba32 "tdf#43157: Fix format string violations in OSL_TRACE etc." did for a 64-bit build Change-Id: I05dd79ede3e66cb9ab7a33792319eb34b34c82dd
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r--svx/source/accessibility/AccessibleTextHelper.cxx23
1 files changed, 16 insertions, 7 deletions
diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx
index 6affc60de3f1..9a8c240e13d7 100644
--- a/svx/source/accessibility/AccessibleTextHelper.cxx
+++ b/svx/source/accessibility/AccessibleTextHelper.cxx
@@ -391,13 +391,13 @@ namespace accessibility
// we just received the focus, also send caret event then
UpdateSelection();
- OSL_TRACE("AccessibleTextHelper_Impl::SetChildFocus(): Paragraph %d received focus", nChild );
+ SAL_INFO("svx", "Paragraph " << nChild << " received focus");
}
else
{
maParaManager.SetFocus( -1 );
- OSL_TRACE("AccessibleTextHelper_Impl::SetChildFocus(): Paragraph %d lost focus", nChild );
+ SAL_INFO("svx", "Paragraph " << nChild << " lost focus");
if( mbGroupHasFocus )
SetShapeFocus( true );
@@ -412,7 +412,7 @@ namespace accessibility
mbGroupHasFocus = true;
maParaManager.SetFocus( nNewChild );
- OSL_TRACE("AccessibleTextHelper_Impl::ChangeChildFocus(): Paragraph %d received focus", nNewChild );
+ SAL_INFO("svx", "Paragraph " << nNewChild << " received focus");
}
void AccessibleTextHelper_Impl::SetShapeFocus( bool bHaveFocus )
@@ -554,8 +554,12 @@ namespace accessibility
ChangeChildFocus( aSelection.nEndPara );
- OSL_TRACE("AccessibleTextHelper_Impl::UpdateSelection(): focus changed, Object: %p, Paragraph: %d, Last paragraph: %d",
- this, aSelection.nEndPara, maLastSelection.nEndPara);
+ SAL_INFO(
+ "svx",
+ "focus changed, Object: " << this
+ << ", Paragraph: " << aSelection.nEndPara
+ << ", Last paragraph: "
+ << maLastSelection.nEndPara);
}
}
@@ -583,8 +587,13 @@ namespace accessibility
aOldCursor );
}
- OSL_TRACE("AccessibleTextHelper_Impl::UpdateSelection(): caret changed, Object: %p, New pos: %d, Old pos: %d, New para: %d, Old para: %d",
- this, aSelection.nEndPos, maLastSelection.nEndPos, aSelection.nEndPara, maLastSelection.nEndPara);
+ SAL_INFO(
+ "svx",
+ "caret changed, Object: " << this << ", New pos: "
+ << aSelection.nEndPos << ", Old pos: "
+ << maLastSelection.nEndPos << ", New para: "
+ << aSelection.nEndPara << ", Old para: "
+ << maLastSelection.nEndPara);
// #108947# Sort new range before calling FireEvent
::std::pair<sal_Int32, sal_Int32> sortedSelection(