[vlc-commits] utils: traits: NPString: Constify input parameter

Hugo Beauzée-Luyssen git at videolan.org
Tue Jan 26 16:24:30 CET 2016


npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jan 26 16:07:10 2016 +0100| [0c453667b70b3fc1e53aa139e637460a4d1fab02] | committer: Hugo Beauzée-Luyssen

utils: traits: NPString: Constify input parameter

> https://code.videolan.org/videolan/npapi-vlc/commit/0c453667b70b3fc1e53aa139e637460a4d1fab02
---

 npapi/utils.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/npapi/utils.hpp b/npapi/utils.hpp
index 1f2ecae..b7eb7d4 100644
--- a/npapi/utils.hpp
+++ b/npapi/utils.hpp
@@ -273,7 +273,7 @@ struct traits<NPString>
         return NPVARIANT_TO_STRING( v );
     }
 
-    static void from( NPString s, NPVariant& v )
+    static void from( const NPString s, NPVariant& v )
     {
         if ( s.UTF8Characters == nullptr )
         {



More information about the vlc-commits mailing list