Kaydet (Commit) 394c5057 authored tarafından Michael Stahl's avatar Michael Stahl

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/16821Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 61b16970
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment