mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
FileManager+FileOperation: Switch to east const
(And some adjustments based on MaxWipfli's feedback)
This commit is contained in:
parent
5217875f6a
commit
ca039e6ba1
10 changed files with 93 additions and 93 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <sched.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
static int perform_copy(const String& source, const String& destination);
|
||||
static int perform_copy(String const& source, String const& destination);
|
||||
static void report_error(String message);
|
||||
static void report_warning(String message);
|
||||
|
||||
|
@ -56,7 +56,7 @@ static void report_warning(String message)
|
|||
outln("WARN {}", message);
|
||||
}
|
||||
|
||||
static bool collect_work_items(const String& source, const String& destination, Vector<WorkItem>& items)
|
||||
static bool collect_work_items(String const& source, String const& destination, Vector<WorkItem>& items)
|
||||
{
|
||||
struct stat st = {};
|
||||
if (stat(source.characters(), &st) < 0) {
|
||||
|
@ -98,7 +98,7 @@ static bool collect_work_items(const String& source, const String& destination,
|
|||
return true;
|
||||
}
|
||||
|
||||
int perform_copy(const String& source, const String& destination)
|
||||
int perform_copy(String const& source, String const& destination)
|
||||
{
|
||||
Vector<WorkItem> items;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue