summaryrefslogtreecommitdiffstats
path: root/kdesu/kdesu
diff options
context:
space:
mode:
Diffstat (limited to 'kdesu/kdesu')
-rw-r--r--kdesu/kdesu/kdesu.cpp4
-rw-r--r--kdesu/kdesu/sudlg.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/kdesu/kdesu/kdesu.cpp b/kdesu/kdesu/kdesu.cpp
index 67ea55fe9..daa522ee1 100644
--- a/kdesu/kdesu/kdesu.cpp
+++ b/kdesu/kdesu/kdesu.cpp
@@ -128,7 +128,7 @@ int main(int argc, char *argv[])
if (result == 127)
{
- KMessageBox::sorry(0, i18n("Command '%1' not found.").arg(command));
+ KMessageBox::sorry(0, i18n("Command '%1' not found.").arg(static_cast<const char *>(command)));
}
return result;
@@ -204,7 +204,7 @@ static int startApp()
int priority = tmp.toInt(&ok);
if (!ok || (priority < 0) || (priority > 100))
{
- KCmdLineArgs::usage(i18n("Illegal priority: %1").arg(tmp));
+ KCmdLineArgs::usage(i18n("Illegal priority: %1").arg(static_cast<const char *>(tmp)));
exit(1);
}
int scheduler = SuProcess::SchedNormal;
diff --git a/kdesu/kdesu/sudlg.cpp b/kdesu/kdesu/sudlg.cpp
index f2ec71723..483633739 100644
--- a/kdesu/kdesu/sudlg.cpp
+++ b/kdesu/kdesu/sudlg.cpp
@@ -26,7 +26,7 @@ KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,co
}
m_User = auth_user;
- setCaption(i18n("Run as %1").arg(user));
+ setCaption(i18n("Run as %1").arg(static_cast<const char *>(user)));
TQString prompt;
if (superUserCommand == "sudo" && m_User == "root") {
@@ -39,7 +39,7 @@ KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,co
} else {
prompt = i18n("The action you requested needs additional privileges. "
"Please enter the password for \"%1\" below or click "
- "Ignore to continue with your current privileges.").arg(m_User);
+ "Ignore to continue with your current privileges.").arg(static_cast<const char *>(m_User));
}
}
setPrompt(prompt);