Skip to content

Commit 456d99f

Browse files
authored
Overloaded virtual function warning by clang (#2021)
* a fix for derived function hides overloaded virtual function * adjust the data types instead
1 parent 5ccef25 commit 456d99f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AudioTools/CoreAudio/AudioHttp/HttpRequest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class HttpRequest : public BaseStream {
335335
}
336336

337337
/// Defines the client timeout in ms
338-
void setTimeout(int timeoutMs) { clientTimeout = timeoutMs; }
338+
void setTimeout(size_t timeoutMs) { clientTimeout = timeoutMs; }
339339

340340
/// we are sending the data chunked
341341
bool isChunked() { return request_header.isChunked(); }

src/AudioTools/CoreAudio/BaseStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class CatStream : public BaseStream {
230230
}
231231

232232
/// Defines the timout the system waits for data when moving to the next stream
233-
void setTimeout(uint32_t t) { _timeout = t; }
233+
void setTimeout(size_t t) { _timeout = t; }
234234

235235
/// not supported
236236
size_t write(const uint8_t *data, size_t size) override { return 0;};

0 commit comments

Comments
 (0)