Remove call to deprecatedCharactersWithNullTermination() in WebGL code
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Jun 2013 23:31:13 +0000 (23:31 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Jun 2013 23:31:13 +0000 (23:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=118154

Reviewed by Dean Jackson.

Remove an unneeded call to deprecatedCharactersWithNullTermination(). Ultimately,
the string we used to call it on gets converted to an UTF-8 CString that has a null character anyway.

* html/canvas/WebGLProgram.cpp:
(WebCore::WebGLProgram::cacheActiveAttribLocations):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@152137 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/canvas/WebGLProgram.cpp

index 13f825c..d41011c 100644 (file)
@@ -1,3 +1,16 @@
+2013-06-27  Anders Carlsson  <andersca@apple.com>
+
+        Remove call to deprecatedCharactersWithNullTermination() in WebGL code
+        https://bugs.webkit.org/show_bug.cgi?id=118154
+
+        Reviewed by Dean Jackson.
+
+        Remove an unneeded call to deprecatedCharactersWithNullTermination(). Ultimately, 
+        the string we used to call it on gets converted to an UTF-8 CString that has a null character anyway.
+
+        * html/canvas/WebGLProgram.cpp:
+        (WebCore::WebGLProgram::cacheActiveAttribLocations):
+
 2013-06-27  Roger Fong  <roger_fong@apple.com>
 
         Unreviewed. Temporarily add some stderr output to Media Engine load methods to determine which engine buildbots are using for layout tests.
index 394d50b..40d3594 100644 (file)
@@ -170,7 +170,7 @@ void WebGLProgram::cacheActiveAttribLocations(GraphicsContext3D* context3d)
     for (int i = 0; i < numAttribs; ++i) {
         ActiveInfo info;
         context3d->getActiveAttrib(object(), i, info);
-        m_activeAttribLocations[i] = context3d->getAttribLocation(object(), info.name.deprecatedCharactersWithNullTermination());
+        m_activeAttribLocations[i] = context3d->getAttribLocation(object(), info.name);
     }
 }