Fix linux compiler error with the debugger app.
authordjsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 13 Nov 2012 18:35:10 +0000 (18:35 +0000)
committerdjsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 13 Nov 2012 18:35:10 +0000 (18:35 +0000)
Review URL: https://codereview.appspot.com/6848045

git-svn-id: http://skia.googlecode.com/svn/trunk@6398 2bbb7eff-a529-9590-31e7-b0007b416f81

debugger/QT/SkDebuggerGUI.cpp

index ef970f4..f61371b 100644 (file)
@@ -224,7 +224,7 @@ void SkDebuggerGUI::actionSaveAs() {
     if (!filename.endsWith(".skp", Qt::CaseInsensitive)) {
         filename.append(".skp");
     }
-    saveToFile(SkString(filename.toAscii()));
+    saveToFile(SkString(filename.toAscii().data()));
 }
 
 void SkDebuggerGUI::actionScale(float scaleFactor) {
@@ -281,7 +281,7 @@ void SkDebuggerGUI::openFile() {
     if (!temp.isEmpty()) {
         QFileInfo pathInfo(temp);
         fPath = pathInfo.path();
-        loadPicture(SkString(temp.toAscii()));
+        loadPicture(SkString(temp.toAscii().data()));
         setupDirectoryWidget();
     }
     fDirectoryWidgetActive = true;