mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-23 19:43:27 +01:00
MacOSX: Fix compiler warning
Update friend declaration in FuseService.h and refactor GetCharWidth to ComputeCharWidth in WaitDialog.h to avoif hiding GetCharWidth inherited from wxWindow
This commit is contained in:
parent
f1f626cc56
commit
0ea32b02b9
@ -38,7 +38,7 @@ namespace VeraCrypt
|
||||
VolumeSlotNumber SlotNumber;
|
||||
};
|
||||
|
||||
friend class ExecFunctor;
|
||||
friend struct ExecFunctor;
|
||||
|
||||
public:
|
||||
static bool AuxDeviceInfoReceived () { return !OpenVolumeInfo.VirtualDevice.IsEmpty(); }
|
||||
|
@ -80,7 +80,7 @@ namespace VeraCrypt
|
||||
m_bThreadRunning = true;
|
||||
}
|
||||
|
||||
int GetCharWidth (wxWindow *window) const
|
||||
static int ComputeCharWidth (wxWindow *window)
|
||||
{
|
||||
int width;
|
||||
int height;
|
||||
@ -179,7 +179,7 @@ namespace VeraCrypt
|
||||
{
|
||||
|
||||
wxPasswordEntryDialog dialog (this, wxString::Format (LangString["ENTER_TOKEN_PASSWORD"], e.GetString()), LangString["IDD_TOKEN_PASSWORD"]);
|
||||
dialog.SetSize (wxSize (GetCharWidth (&dialog) * 50, -1));
|
||||
dialog.SetSize (wxSize (ComputeCharWidth (&dialog) * 50, -1));
|
||||
|
||||
if (dialog.ShowModal() != wxID_OK)
|
||||
m_queue.Post(wxT(""));
|
||||
|
Loading…
Reference in New Issue
Block a user