Add data() to all QString::toASCII Qt calls to help out Linux compiler
https://codereview.appspot.com/7232052/ git-svn-id: http://skia.googlecode.com/svn/trunk@7419 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
ff6e6bade3
commit
e219baf747
@ -514,9 +514,9 @@ void SkDebuggerGUI::actionRewind() {
|
||||
}
|
||||
|
||||
void SkDebuggerGUI::actionSave() {
|
||||
fFileName = fPath.toAscii();
|
||||
fFileName = fPath.toAscii().data();
|
||||
fFileName.append("/");
|
||||
fFileName.append(fDirectoryWidget.currentItem()->text().toAscii());
|
||||
fFileName.append(fDirectoryWidget.currentItem()->text().toAscii().data());
|
||||
saveToFile(fFileName);
|
||||
}
|
||||
|
||||
@ -571,9 +571,9 @@ void SkDebuggerGUI::saveToFile(const SkString& filename) {
|
||||
|
||||
void SkDebuggerGUI::loadFile(QListWidgetItem *item) {
|
||||
if (fDirectoryWidgetActive) {
|
||||
fFileName = fPath.toAscii();
|
||||
fFileName = fPath.toAscii().data();
|
||||
fFileName.append("/");
|
||||
fFileName.append(item->text().toAscii());
|
||||
fFileName.append(item->text().toAscii().data());
|
||||
loadPicture(fFileName);
|
||||
}
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
QStringList::const_iterator iter = argList.begin();
|
||||
|
||||
SkString commandName(iter->toAscii());
|
||||
SkString commandName(iter->toAscii().data());
|
||||
++iter; // skip the command name
|
||||
|
||||
for ( ; iter != argList.end(); ++iter) {
|
||||
@ -37,7 +37,7 @@ int main(int argc, char *argv[]) {
|
||||
usage(commandName.c_str());
|
||||
return -1;
|
||||
} else if (input.isEmpty()) {
|
||||
input = SkString(iter->toAscii());
|
||||
input = SkString(iter->toAscii().data());
|
||||
} else {
|
||||
usage(commandName.c_str());
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user