Browse Source

Fix gcc compiling issue

Alexey Edelev 5 years ago
parent
commit
27a945b33c
1 changed files with 2 additions and 2 deletions
  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 (...) {