Ticket #40386: patch-src-plugins-contrib-lib_finder-librariesdlg.cpp.diff

File patch-src-plugins-contrib-lib_finder-librariesdlg.cpp.diff, 1.0 KB (added by mojca (Mojca Miklavec), 11 years ago)
  • src/plugins/contrib/lib_finder/librariesdlg.cpp

    needed to compile with clang
    old new  
    1414#include <wx/string.h>
    1515//*)
    1616
     17#include <algorithm>
    1718#include <sdk.h>
    1819#include <manager.h>
    1920#include <configmanager.h>
    END_EVENT_TABLE() 
    9091
    9192LibrariesDlg::LibrariesDlg(wxWindow* parent, TypedResults& knownLibraries)
    9293    : m_KnownLibraries(knownLibraries)
    93     , m_WorkingCopy(knownLibraries)
    9494    , m_SelectedConfig(0)
    9595    , m_WhileUpdating(false)
    9696{
    LibrariesDlg::LibrariesDlg(wxWindow* parent, TypedResults& knownLibraries) 
    124124    wxBoxSizer* BoxSizer3;
    125125    wxStdDialogButtonSizer* StdDialogButtonSizer1;
    126126
     127    std::copy(m_KnownLibraries, m_KnownLibraries+sizeof(m_WorkingCopy)/sizeof(m_WorkingCopy[0]), m_WorkingCopy);
     128
    127129    Create(parent, wxID_ANY, _("Registered libraries"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER, _T("wxID_ANY"));
    128130    BoxSizer1 = new wxBoxSizer(wxVERTICAL);
    129131    BoxSizer16 = new wxBoxSizer(wxHORIZONTAL);