diff options
author | Slávek Banko <[email protected]> | 2020-09-01 12:36:09 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-09-01 12:36:09 +0200 |
commit | 40420b140dae57640a553643766112af9902b7b0 (patch) | |
tree | 77b8670df921d1c9c2bc22a5f713bb5fac2cf28f /kpacman/keys.cpp | |
parent | 7e43acd8185cad93e5aeb91b199a89bd8b3eb069 (diff) | |
download | tdepacman-40420b140dae57640a553643766112af9902b7b0.tar.gz tdepacman-40420b140dae57640a553643766112af9902b7b0.zip |
Added controlled conversions to char* instead of automatic
ascii conversions. Removed unnecessary conversions to char*.
The definition of -UTQT_NO_ASCII_CAST is no longer needed.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kpacman/keys.cpp')
-rw-r--r-- | kpacman/keys.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kpacman/keys.cpp b/kpacman/keys.cpp index d26c263..df8f980 100644 --- a/kpacman/keys.cpp +++ b/kpacman/keys.cpp @@ -162,28 +162,28 @@ void PKeys::defaults() void PKeys::init() { TQString up("Up"); - up = kapp->config()->readEntry("upKey", (const char*) up); + up = kapp->config()->readEntry("upKey", up); labels[0]->setText(up); TQString down("Down"); - down = kapp->config()->readEntry("downKey", (const char*) down); + down = kapp->config()->readEntry("downKey", down); labels[1]->setText(down); TQString left("Left"); - left = kapp->config()->readEntry("leftKey", (const char*) left); + left = kapp->config()->readEntry("leftKey", left); labels[2]->setText(left); TQString right("Right"); - right = kapp->config()->readEntry("rightKey", (const char*) right); + right = kapp->config()->readEntry("rightKey", right); labels[3]->setText(right); } void PKeys::ok() { - kapp->config()->writeEntry("upKey", (const char*) labels[0]->text() ); - kapp->config()->writeEntry("downKey", (const char*) labels[1]->text() ); - kapp->config()->writeEntry("leftKey", (const char*) labels[2]->text() ); - kapp->config()->writeEntry("rightKey",(const char*) labels[3]->text() ); + kapp->config()->writeEntry("upKey", labels[0]->text() ); + kapp->config()->writeEntry("downKey", labels[1]->text() ); + kapp->config()->writeEntry("leftKey", labels[2]->text() ); + kapp->config()->writeEntry("rightKey", labels[3]->text() ); kapp->config()->sync(); accept(); |