sw/inc/pam.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 394c5057e2c2a10bc09504646eed1b80e3cb061c Author: Michael Stahl <mst...@redhat.com> Date: Tue Jul 7 15:07:59 2015 +0200 sw: let's try some C++11 syntax for function pointers Less ugly or just differently ugly? Hard to tell... Change-Id: I1265f07f39ebbc65acfcc30242bc7cd7d46207e7 Reviewed-on: https://gerrit.libreoffice.org/16821 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michael...@canonical.com> Reviewed-by: Michael Stahl <mst...@redhat.com> diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx index 40715b4..cce42c0 100644 --- a/sw/inc/pam.hxx +++ b/sw/inc/pam.hxx @@ -143,7 +143,9 @@ typedef SwMoveFnCollection* SwMoveFn; SW_DLLPUBLIC extern SwMoveFn fnMoveForward; ///< SwPam::Move()/Find() default argument. SW_DLLPUBLIC extern SwMoveFn fnMoveBackward; -typedef bool (*SwGoInDoc)( SwPaM& rPam, SwMoveFn fnMove ); +// also works: using SwGoInDoc = bool (*) (SwPaM& rPam, SwMoveFn fnMove); +// no works: using SwGoInDoc = [](SwPaM& rPam, SwMoveFn fnMove) -> bool; +using SwGoInDoc = auto (*)(SwPaM& rPam, SwMoveFn fnMove) -> bool; SW_DLLPUBLIC extern SwGoInDoc fnGoDoc; extern SwGoInDoc fnGoSection; SW_DLLPUBLIC extern SwGoInDoc fnGoNode;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits