Review Request 116879: Fix build of kuser_win.cpp with MSVC2010

Nicolás Alvarez nicolas.alvarez at gmail.com
Tue Mar 18 18:28:08 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/116879/
-----------------------------------------------------------

Review request for KDE Frameworks.


Repository: kcoreaddons


Description
-------

Fix build of kuser_win.cpp with MSVC2010:

- Add missing cast.
- Add return types to lambdas. In C++11, the return type is only deduced if the lambda consists only of a single return statement. This will change in C++14 (see C++ DR975), and MSVC2013 implements the new behavior, but MSVC2010 doesn't.


Diffs
-----

  src/lib/util/kuser_win.cpp e7fb5b6 

Diff: https://git.reviewboard.kde.org/r/116879/diff/


Testing
-------

Compiles on MSVC2010 and 2013.


Thanks,

Nicolás Alvarez

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140318/2ff01352/attachment.html>


More information about the Kde-frameworks-devel mailing list