diff --git a/alib2algo_experimental/src/graph/datastructs/Array.h b/alib2algo_experimental/src/graph/datastructs/Array.h index d683e7795a4a4389a434430692893bedaf488633..277f0873fd897ea4cf9ea4bb689dc8c3f0c24c20 100644 --- a/alib2algo_experimental/src/graph/datastructs/Array.h +++ b/alib2algo_experimental/src/graph/datastructs/Array.h @@ -13,20 +13,20 @@ class Array { public: - Array( uint length ) { _Carray = new elem_t [ length ]; _length = length; } + Array( uint len ) { _Carray = new elem_t [ len ]; _length = len; } ~Array() { delete [] _Carray; } inline elem_t & operator[](uint index) { return _Carray[ index ]; } inline const elem_t & operator[](uint index) const { return _Carray[ index ]; } - void resize(uint length) + void resize(uint len) { - elem_t * newArr = new elem_t [ length ]; - for (uint i = 0; i < _length && i < length; i++) + elem_t * newArr = new elem_t [ len ]; + for (uint i = 0; i < _length && i < len; i++) newArr[i] = std::move( _Carray[i] ); delete [] _Carray; _Carray = newArr; - _length = length; + _length = len; } inline uint length() const { return _length; } diff --git a/alib2data/src/rte/RTE.cpp b/alib2data/src/rte/RTE.cpp index 00a2445ae6eb38af91e012685e87efb57723b30b..0e177b8a139f8b1bc6789c67aefad428e6f94888 100644 --- a/alib2data/src/rte/RTE.cpp +++ b/alib2data/src/rte/RTE.cpp @@ -7,7 +7,6 @@ #include "RTE.h" #include "../alphabet/Symbol.h" -#include "../string/LinearString.h" #include <core/xmlApi.hpp> diff --git a/alib2data/src/rte/RTE.h b/alib2data/src/rte/RTE.h index cfe57b412dfae0421d81668cf57e7f14ba9442c8..5a008990bc8ade64d798953a6938ca95152546af 100644 --- a/alib2data/src/rte/RTE.h +++ b/alib2data/src/rte/RTE.h @@ -12,7 +12,6 @@ #include <base/WrapperBase.hpp> #include "../alphabet/SymbolFeatures.h" -#include "../string/StringFeatures.h" #include <set> #include <string>