X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/627ef2adbb12c066764d6bd618147f6adb2b9cac..f55cdf088f15ad337edcc78989c60b717023fcf2:/include/stg/user_traff.h?ds=inline 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();