]> git.lyx.org Git - features.git/commit
bind makes a copy of the arguments by default. This is secure if the
authorPeter Kümmel <syntheticpp@gmx.net>
Sat, 23 Oct 2010 00:06:22 +0000 (00:06 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sat, 23 Oct 2010 00:06:22 +0000 (00:06 +0000)
commitad51a8e88e3d9afac5ed354d0d5adb656e692c02
tree5910b6dcc3ae8e7c8bc01c9f7c16be76b61a569d
parentd9c6263c6aab90ee195b62d408a192562914c94c
bind makes a copy of the arguments by default. This is secure if the
bound object survives the existance of the arguments, but it also breaks
"change by non-const reference"  parameter passing, like in
Alert::askForString. Here the arguments exists the whole bound function
call so we could pass by refernce.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35789 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/qt4/InGuiThread.h