#include "../common/uuid.h"
#include "../common/dirs.h"
-// TODO: Investigate problems with SFML & PulseAudio - CPU usage problems when
-// not being used.
-
-// Replace intResult with intValueSeek.
-
BEGIN_EVENT_TABLE(frmContactEditor, wxFrame)
EVT_COMMAND(wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, frmContactEditor::ContactFileChanged)
END_EVENT_TABLE()
}
+frmContactEditor::~frmContactEditor()
+{
+
+ if (AudioStreamPlaybackPointer != nullptr)
+ {
+
+ delete AudioStreamPlaybackPointer;
+ AudioStreamPlaybackPointer = nullptr;
+
+ }
+
+}
+
void frmContactEditor::CloseContact( wxCommandEvent& event )
{
int frmContactEditor::GetLastInt(std::map<int, wxString> *MapData){
- /*
- int intResult = 0;
-
- std::map<int,wxString>::iterator iwxsit;
-
- for( iwxsit=(*MapData).begin(); iwxsit != (*MapData).end(); iwxsit++){
- intResult = (*iwxsit).first;
- }
-
- return intResult;
- */
-
intValueSeek++;
return intValueSeek;
int frmContactEditor::GetLastInt(std::map<int, std::string> *MapData){
- /* int intResult = 0;
-
- std::map<int,std::string>::iterator iwxsit;
-
- for( iwxsit=(*MapData).begin(); iwxsit != (*MapData).end(); iwxsit++){
- intResult = (*iwxsit).first;
- }*/
-
intValueSeek++;
return intValueSeek;
wxLIST_NEXT_ALL,
wxLIST_STATE_SELECTED);
- *intSelectedData = (int)ListCtrlPtr->GetItemData(*longSelected);
-
if (*longSelected == -1){
return FALSE;
- } else {
- return TRUE;
}
+ *intSelectedData = (int)ListCtrlPtr->GetItemData(*longSelected);
+
+ return TRUE;
+
}
void frmContactEditor::DeleteMapDataProcess(int IndexNum, std::map<int, std::string>* MapData){