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

Nicolás Alvarez nicolas.alvarez at gmail.com
Wed Mar 19 01:47:06 UTC 2014


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

(Updated March 19, 2014, 1:47 a.m.)


Status
------

This change has been marked as submitted.


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/20140319/20f6a8cd/attachment.html>


More information about the Kde-frameworks-devel mailing list