Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b98495d9 authored by Sharjeel Khan's avatar Sharjeel Khan Committed by Android (Google) Code Review
Browse files

Merge "Fix -Wnontrivial-memcall warning" into main

parents eb2d79af 5f2e964f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -25,12 +25,12 @@

FileInfo::FileInfo()
{
    memset(this, 0, sizeof(FileInfo));
    memset(static_cast<void*>(this), 0, sizeof(FileInfo));
}

FileInfo::FileInfo(const FileInfo& that)
{
    memcpy(this, &that, sizeof(FileInfo));
    memcpy(static_cast<void*>(this), &that, sizeof(FileInfo));
}

FileInfo::FileInfo(const string& filename)
@@ -38,7 +38,7 @@ FileInfo::FileInfo(const string& filename)
    struct stat st;
    int err = stat(filename.c_str(), &st);
    if (err != 0) {
        memset(this, 0, sizeof(FileInfo));
        memset(static_cast<void*>(this), 0, sizeof(FileInfo));
    } else {
        exists = true;
        mtime = st.st_mtime;