summaryrefslogtreecommitdiff
authoreilers <eilers>2004-07-27 13:26:12 (UTC)
committer eilers <eilers>2004-07-27 13:26:12 (UTC)
commitfd0d353abb2fd89a91eca830dbb814984647c1f7 (patch) (side-by-side diff)
treed5328db46863e4d3fbda5fe85fd3b1ddb1951f80
parent2f332574ddbd31fe9709c1ec93049ecef9bd00a4 (diff)
downloadopie-fd0d353abb2fd89a91eca830dbb814984647c1f7.zip
opie-fd0d353abb2fd89a91eca830dbb814984647c1f7.tar.gz
opie-fd0d353abb2fd89a91eca830dbb814984647c1f7.tar.bz2
Replacing an ugly QString.sprintf() with QString().arg() which fixes wrong format handling.
This is a reason, why we have odebug instead of qDebug.. Thanks to mickeyl for code review!
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_jornada.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice_jornada.cpp b/libopie2/opiecore/device/odevice_jornada.cpp
index 5d32901..60736a1 100644
--- a/libopie2/opiecore/device/odevice_jornada.cpp
+++ b/libopie2/opiecore/device/odevice_jornada.cpp
@@ -200,5 +200,5 @@ bool Jornada::setDisplayStatus ( bool on )
bool res = false;
- QString cmdline = QString().sprintf( "echo %d > /sys/class/lcd/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/power", on ? "0" : "4", on? "0" : "4" );
+ QString cmdline = QString( "echo %1 > /sys/class/lcd/sa1100fb/power; echo %2 > /sys/class/backlight/sa1100fb/power").arg( on ? "0" : "4" ).arg( on ? "0" : "4" );
res = ( ::system( (const char*) cmdline ) == 0 );