io/FileReader: use std::size_t

This commit is contained in:
Max Kellermann 2021-12-08 19:39:50 +01:00
parent c072902f23
commit 7d67c87a47
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2014-2019 Max Kellermann <max.kellermann@gmail.com> * Copyright 2014-2021 Max Kellermann <max.kellermann@gmail.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
@ -54,8 +54,8 @@ FileReader::GetFileInfo() const
return FileInfo(path); return FileInfo(path);
} }
size_t std::size_t
FileReader::Read(void *data, size_t size) FileReader::Read(void *data, std::size_t size)
{ {
assert(IsDefined()); assert(IsDefined());
@ -116,8 +116,8 @@ FileReader::GetFileInfo() const
return info; return info;
} }
size_t std::size_t
FileReader::Read(void *data, size_t size) FileReader::Read(void *data, std::size_t size)
{ {
assert(IsDefined()); assert(IsDefined());

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2014-2019 Max Kellermann <max.kellermann@gmail.com> * Copyright 2014-2021 Max Kellermann <max.kellermann@gmail.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
@ -127,7 +127,7 @@ public:
void Skip(off_t offset); void Skip(off_t offset);
/* virtual methods from class Reader */ /* virtual methods from class Reader */
size_t Read(void *data, size_t size) override; std::size_t Read(void *data, std::size_t size) override;
}; };
#endif #endif