Changeset 137 for trunk/rstring.h


Ignore:
Timestamp:
Sep 20, 2021, 6:48:26 PM (4 years ago)
Author:
Gregg Young
Message:

Fix some issues identified by cppcheck; minor code cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rstring.h

    r10 r137  
    3333    ResourceString (ULONG Id);
    3434
    35     ResourceString (const ResourceString &rstr)
    36     {
    37         SavedId      = rstr.SavedId;
    38         BlockPointer = rstr.BlockPointer;
    39         psz          = rstr.psz;
    40     }
     35    ResourceString (const ResourceString &rstr) :SavedId (rstr.SavedId),
     36        BlockPointer (rstr.BlockPointer), psz (rstr.psz)
     37    {}
    4138
    4239    operator unsigned char * ()  { return ((unsigned char *) psz); }
Note: See TracChangeset for help on using the changeset viewer.