Don't use std:: in the code directly (where possible).
[pulseview.git] / pv / application.cpp
index 80a22ab9ebb51faefc8124bc36b13df0c1e54ba7..383b5c23d29737c6c14ebb537b4756a57ee83139 100644 (file)
 
 #include <iostream>
 
+using std::cerr;
+using std::endl;
+using std::exception;
+
 Application::Application(int &argc, char* argv[]) :
        QApplication(argc, argv)
 {
@@ -35,8 +39,8 @@ bool Application::notify(QObject *receiver, QEvent *event)
 {
        try {
                return QApplication::notify(receiver, event);
-       } catch (std::exception& e) {
-               std::cerr << "Caught exception: " << e.what() << std::endl;
+       } catch (exception& e) {
+               cerr << "Caught exception: " << e.what() << endl;
                exit(1);
                return false;
        }