Explorar el Código

Fix gcc compiling issue

Alexey Edelev hace 6 años
padre
commit
27a945b33c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/grpc/abstractclient.h

+ 2 - 2
src/grpc/abstractclient.h

@@ -56,10 +56,10 @@ protected:
         if (call(method, arg.serialize(), retData)) {
             try {
                 ret.deserialize(retData);
-            } catch (std::invalid_argument) {
+            } catch (std::invalid_argument &) {
                 qProtoCritical() << "Response deserialization failed invalid field found";
                 return false;
-            } catch (std::out_of_range) {
+            } catch (std::out_of_range &) {
                 qProtoCritical() << "Invalid size of received buffer";
                 return false;
             } catch (...) {