Blender Git Loki

Git Commits -> Revision 351c409

Revision 351c409 by Phil Christensen (master)
February 6, 2017, 09:44 (GMT)
C++ conformance fixes (MSVC /permissive-)

We (the Microsoft C++ team) use the Blender project as part of our "Real world code" tests.
I noticed a place in WIN32 specific code (dvpapi.cpp:85) where a string literal is losing
its const-ness when being passed to BLI_dynlib_open(). This is not permitted when using the
/permissive- conformance compiler switch (see our blog
https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/)

My suggested fix is to add const and propagate it where needed. Another possible fix would be
to explicitly cast away the const.

Reviewers: mont29, sergey, LazyDodo

Subscribers: Blendify, sergey, mont29, LazyDodo

Tags: #platform:_windows

Differential Revision: https://developer.blender.org/D2495

Commit Details:

Full Hash: 351c409317242857937b16a6d461b59ec6e690e0
Parent Commit: 22156d9
Committed By: Sergey Sharybin
Lines Changed: +4, -4

3 Modified Paths:

/intern/utfconv/utfconv.h (+1, -1) (Diff)
/source/blender/blenlib/BLI_dynlib.h (+1, -1) (Diff)
/source/blender/blenlib/intern/dynlib.c (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021