summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-11-25 17:06:20 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-11-25 17:06:20 +0000
commit524c9bdd61df61c9f4cfc42f5f2c80b7ef64bd21 (patch)
tree8c68cb5091da0cb1f818969fe9bc3fe0553943b0 /examples
parente9dd21064c6358d90d9453eccc79c2bb0f0a4b66 (diff)
downloadpango-524c9bdd61df61c9f4cfc42f5f2c80b7ef64bd21.tar.gz
Fix missing argument (#99380, Dagfinn I. Mannsåker)
Mon Nov 25 11:58:30 2002 Owen Taylor <otaylor@redhat.com> * examples/viewer-qt.cc (readFile): Fix missing argument (#99380, Dagfinn I. Mannsåker)
Diffstat (limited to 'examples')
-rw-r--r--examples/viewer-qt.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/viewer-qt.cc b/examples/viewer-qt.cc
index 507ce958..f24cf33f 100644
--- a/examples/viewer-qt.cc
+++ b/examples/viewer-qt.cc
@@ -169,7 +169,7 @@ ViewerView::readFile (const QString &name)
if (!file.open (IO_ReadOnly))
{
- fprintf (stderr, "Cannot open file '%s'\n");
+ fprintf (stderr, "Cannot open file '%s'\n", (const char *)name.local8Bit());
return;
}
@@ -521,7 +521,7 @@ main (int argc, char **argv)
else
filename = "HELLO.utf8";
- ViewerWindow *vw = new ViewerWindow (filename);
+ ViewerWindow *vw = new ViewerWindow (QString::fromLocal8Bit (filename));
vw->show();