Преглед на файлове

Merging declaration and assignment

Source commit: 063f0e858f70a161f23e12863d42d247d38db0d0
Martin Prikryl преди 10 години
родител
ревизия
0409ecd920
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      source/core/Bookmarks.cpp

+ 1 - 2
source/core/Bookmarks.cpp

@@ -166,8 +166,7 @@ void __fastcall TBookmarks::Save(THierarchicalStorage * Storage, bool All)
         TBookmarkList * BookmarkList = dynamic_cast<TBookmarkList *>(FBookmarkLists->Objects[Index]);
         if (All || BookmarkList->Modified)
         {
-          UnicodeString Key;
-          Key = FBookmarkLists->Strings[Index];
+          UnicodeString Key = FBookmarkLists->Strings[Index];
           Storage->RecursiveDeleteSubKey(Key);
           if (Storage->OpenSubKey(Key, true))
           {