Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4ba82adb authored by hhakim's avatar hhakim
Browse files

Minor change: correct constness for Slice arguments.

parent 84518605
Branches
Tags
No related merge requests found
...@@ -15,7 +15,7 @@ namespace Faust { ...@@ -15,7 +15,7 @@ namespace Faust {
} }
} }
Slice::Slice(Slice& s) Slice::Slice(const Slice& s)
{ {
this->copy(s); this->copy(s);
} }
...@@ -35,7 +35,7 @@ namespace Faust { ...@@ -35,7 +35,7 @@ namespace Faust {
return this->start_id >= s.start_id && this->end_id <= s.end_id; return this->start_id >= s.start_id && this->end_id <= s.end_id;
} }
void Slice::copy(Slice& s) void Slice::copy(const Slice& s)
{ {
this->start_id = s.start_id; this->start_id = s.start_id;
this->end_id = s.end_id; this->end_id = s.end_id;
......
...@@ -12,12 +12,12 @@ namespace Faust { ...@@ -12,12 +12,12 @@ namespace Faust {
faust_unsigned_int end_id; faust_unsigned_int end_id;
Slice(faust_unsigned_int start_id, faust_unsigned_int end_id); Slice(faust_unsigned_int start_id, faust_unsigned_int end_id);
Slice(Slice&); Slice(const Slice&);
Slice(); Slice();
bool belong_to(faust_unsigned_int min_i, faust_unsigned_int max_i); bool belong_to(faust_unsigned_int min_i, faust_unsigned_int max_i);
bool belong_to(Slice& s); bool belong_to(Slice& s);
void copy(Slice& s); void copy(const Slice& s);
static void swap(Slice& s1, Slice& s2); static void swap(Slice& s1, Slice& s2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment