1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Files
winscp/source/forms/CreateDirectory.h
Martin Prikryl 74fdf539de Clang imposed changes that should be noop and have no effect on classic compiler (2nd after 92ba1e3f0 + preceding commits)
Mostly
– explicit static global variables
– const, sign and down casts safety
– same-named variables in nested scopes
– incorrectly identified uninitialized variables
– semicolon after function implementation
– unused variables, fields, arguments and macros
– exact include filename case
– field initialization order
– typename use
– struct vs class declarations
– incorrectly identified uninitialized variables
– refactoring to solve Clang internal compiler error when using new variable in __finally block

Source commit: 3da995ff5169eefcfe3b3b7cc0d019c660096c07
2025-06-24 16:32:34 +02:00

51 lines
1.6 KiB
C++

//----------------------------------------------------------------------------
#ifndef CreateDirectoryH
#define CreateDirectoryH
//----------------------------------------------------------------------------
#include "Rights.h"
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.StdCtrls.hpp>
//----------------------------------------------------------------------------
#include <Bookmarks.h>
#include <GUITools.h>
//----------------------------------------------------------------------------
class TCreateDirectoryDialog : public TForm
{
__published:
TButton *OKBtn;
TButton *CancelBtn;
TEdit *DirectoryEdit;
TLabel *EditLabel;
TButton *HelpButton;
TPanel *MorePanel;
TGroupBox *AttributesGroup;
TRightsFrame *RightsFrame;
TCheckBox *SetRightsCheck;
TCheckBox *SaveSettingsCheck;
void __fastcall ControlChange(TObject *Sender);
void __fastcall DirectoryEditChange(TObject *Sender);
void __fastcall FormShow(TObject *Sender);
void __fastcall HelpButtonClick(TObject *Sender);
void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
public:
__fastcall TCreateDirectoryDialog(TComponent* AOwner, int AllowedChanges, bool Remote);
virtual __fastcall ~TCreateDirectoryDialog();
bool __fastcall Execute(UnicodeString & Directory, TRemoteProperties * Properties,
bool & SaveSettings);
protected:
void __fastcall UpdateControls();
INTERFACE_HOOK
private:
int FAllowedChanges;
};
//----------------------------------------------------------------------------
#endif