OSDN Git Service

minor cleanup
authorIvailo Monev <xakepa10@laimg.moc>
Fri, 7 Jun 2019 13:42:12 +0000 (13:42 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Fri, 7 Jun 2019 13:42:12 +0000 (13:42 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/kernel/qapplication_x11.cpp
src/tools/qscript/qscript.cpp

index cd69461..309b5f3 100644 (file)
@@ -392,8 +392,7 @@ extern "C" {
 
 static Bool qt_xfixes_scanner(Display*, XEvent *event, XPointer arg)
 {
-    qt_xfixes_selection_event_data *data =
-        reinterpret_cast<qt_xfixes_selection_event_data*>(arg);
+    qt_xfixes_selection_event_data *data = reinterpret_cast<qt_xfixes_selection_event_data*>(arg);
     if (event->type == qt_x11Data->xfixes_eventbase + XFixesSelectionNotify) {
         XFixesSelectionNotifyEvent *xfixes_event = reinterpret_cast<XFixesSelectionNotifyEvent*>(event);
         if (xfixes_event->selection == data->selection)
@@ -633,8 +632,7 @@ extern "C" {
 
 static Bool qt_sync_request_scanner(Display*, XEvent *event, XPointer arg)
 {
-    qt_sync_request_event_data *data =
-        reinterpret_cast<qt_sync_request_event_data*>(arg);
+    qt_sync_request_event_data *data = reinterpret_cast<qt_sync_request_event_data*>(arg);
     if (event->type == ClientMessage &&
         event->xany.window == data->window &&
         event->xclient.message_type == ATOM(WM_PROTOCOLS) &&
index 5552781..5444667 100644 (file)
@@ -79,12 +79,11 @@ static void interactive(QScriptEngine *eng)
     QString code;
 
     forever {
-        QString line;
 
         printf("%s", prompt);
         fflush(stdout);
 
-        line = qin.readLine();
+        QString line = qin.readLine();
         if (line.isNull())
             break;