X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/627ef2adbb12c066764d6bd618147f6adb2b9cac..ebe4af54bde52ca8182e97a3dc8d25449b9c1dbc:/include/stg/user_traff.h?ds=sidebyside diff --git a/include/stg/user_traff.h b/include/stg/user_traff.h index 41c6c23f..1b9e2035 100644 --- a/include/stg/user_traff.h +++ b/include/stg/user_traff.h @@ -27,12 +27,13 @@ #ifndef USER_TRAFF_H #define USER_TRAFF_H -#include -#include - +#include "resetable.h" #include "const.h" #include "os_int.h" +#include +#include + enum TRAFF_DIRECTION {TRAFF_UPLOAD, TRAFF_DOWNLOAD}; class DIR_TRAFF @@ -88,7 +89,7 @@ public: ValueType & operator[](IndexType idx) { return traff[idx]; } DIR_TRAFF GetData() const { - DIR_TRAFF res(traff.size()); + DIR_TRAFF res; for (IndexType i = 0; i < traff.size(); ++i) if (!traff[i].empty()) res[i] = traff[i].data();