Changeset 1505 for trunk/dll/grep2.c


Ignore:
Timestamp:
Apr 12, 2010, 12:29:56 AM (15 years ago)
Author:
Gregg Young
Message:

Remove unnecessary type casts; minor formating cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep2.c

    r1498 r1505  
    263263                      GREP_MASK, EM_SETSEL, MPFROM2SHORT(0, 8192), MPVOID);
    264264    size = sizeof(BOOL);
    265     PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "RememberFlagsGrep",
     265    PrfQueryProfileData(fmprof, FM3Str, "RememberFlagsGrep",
    266266                        (PVOID) & gRemember, &size);
    267267    WinCheckButton(hwnd, GREP_REMEMBERFLAGS, gRemember);
    268268    if (gRemember) {
    269269      size = sizeof(BOOL);
    270       PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_Recurse",
     270      PrfQueryProfileData(fmprof, FM3Str, "Grep_Recurse",
    271271                          (PVOID) & recurse, &size);
    272272      size = sizeof(BOOL);
    273       PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_Absolute",
     273      PrfQueryProfileData(fmprof, FM3Str, "Grep_Absolute",
    274274                          (PVOID) & absolute, &size);
    275275      size = sizeof(BOOL);
    276       PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_Case",
     276      PrfQueryProfileData(fmprof, FM3Str, "Grep_Case",
    277277                          (PVOID) & sensitive, &size);
    278278      size = sizeof(BOOL);
    279       PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_Sayfiles",
     279      PrfQueryProfileData(fmprof, FM3Str, "Grep_Sayfiles",
    280280                          (PVOID) & sayfiles, &size);
    281281      size = sizeof(BOOL);
    282       PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_Searchfiles",
     282      PrfQueryProfileData(fmprof, FM3Str, "Grep_Searchfiles",
    283283                          (PVOID) & searchFiles, &size);
    284284      size = sizeof(BOOL);
    285       PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "Grep_SearchfEAs",
     285      PrfQueryProfileData(fmprof, FM3Str, "Grep_SearchfEAs",
    286286                          (PVOID) & searchEAs, &size);
    287287    }
     
    370370        BOOL gRemember = WinQueryButtonCheckstate(hwnd, GREP_REMEMBERFLAGS);
    371371
    372         PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "RememberFlagsGrep",
     372        PrfWriteProfileData(fmprof, FM3Str, "RememberFlagsGrep",
    373373                            (PVOID) & gRemember, sizeof(BOOL));
    374374      }
     
    856856        gRemember = WinQueryButtonCheckstate(hwnd, GREP_REMEMBERFLAGS);
    857857        if (gRemember) {
    858           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_Recurse",
     858          PrfWriteProfileData(fmprof, FM3Str, "Grep_Recurse",
    859859                              (PVOID) & recurse, sizeof(BOOL));
    860           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_Absolute",
     860          PrfWriteProfileData(fmprof, FM3Str, "Grep_Absolute",
    861861                              (PVOID) & absolute, sizeof(BOOL));
    862           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_Case",
     862          PrfWriteProfileData(fmprof, FM3Str, "Grep_Case",
    863863                              (PVOID) & sensitive, sizeof(BOOL));
    864           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_Sayfiles",
     864          PrfWriteProfileData(fmprof, FM3Str, "Grep_Sayfiles",
    865865                              (PVOID) & sayfiles, sizeof(BOOL));
    866           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_Searchfiles",
     866          PrfWriteProfileData(fmprof, FM3Str, "Grep_Searchfiles",
    867867                              (PVOID) & searchFiles, sizeof(BOOL));
    868           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Grep_SearchfEAs",
     868          PrfWriteProfileData(fmprof, FM3Str, "Grep_SearchfEAs",
    869869                              (PVOID) & searchEAs, sizeof(BOOL));
    870870        }
Note: See TracChangeset for help on using the changeset viewer.