Browse Source

Minor code improvements

Alexey Edelev 6 years ago
parent
commit
1fa6115fb2
2 changed files with 1 additions and 3 deletions
  1. 1 1
      src/lib/protobufobject.h
  2. 0 2
      src/lib/qtprotobuf.cpp

+ 1 - 1
src/lib/protobufobject.h

@@ -64,7 +64,7 @@ protected:
         return *(char *)&header;
     }
 
-    inline QByteArray serializeValue(const QVariant& propertyValue, int fieldIndex, bool isFixed = false) {
+    QByteArray serializeValue(const QVariant& propertyValue, int fieldIndex, bool isFixed = false) {
         QByteArray result;
         WireTypes type = UnknownWireType;
         switch (propertyValue.type()) {

+ 0 - 2
src/lib/qtprotobuf.cpp

@@ -24,5 +24,3 @@
  */
 
 #include <qtprotobuf.h>
-
-//bool qtprotobuf::QtProtobuf::registationDone = false;