Skip to content
Snippets Groups Projects
Commit 0f60e67c authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix 5 jenkins variable shadow error

parent aa605d1f
No related branches found
No related tags found
Loading
......@@ -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; }
......
......@@ -7,7 +7,6 @@
 
#include "RTE.h"
#include "../alphabet/Symbol.h"
#include "../string/LinearString.h"
 
#include <core/xmlApi.hpp>
 
......
......@@ -12,7 +12,6 @@
#include <base/WrapperBase.hpp>
 
#include "../alphabet/SymbolFeatures.h"
#include "../string/StringFeatures.h"
#include <set>
#include <string>
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment