Skip to content

Commit

Permalink
Linux compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Sep 25, 2023
1 parent d0f83f1 commit 207c74e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cloud_accounts_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class CloudFileList : public wxDataViewListCtrl
EscapeMarkup(f.description)
);
#else
wxString text = str::to_wx(f.title);
wxString text(f.title);
#endif

wxVector<wxVariant> data;
Expand Down Expand Up @@ -847,7 +847,7 @@ bool ShouldSyncToCloudAutomatically(CatalogPtr catalog)
wxFileName f(catalog->GetFileName());
f.Normalize();

return f.GetFullPath().starts_with(root.GetFullPath());
return f.GetFullPath().StartsWith(root.GetFullPath());
}


Expand Down
2 changes: 1 addition & 1 deletion src/localazy_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void LocalazyLoginPanel::UpdateUserInfo()
for (auto p : projects)
{
wxVariant data(wxDataViewIconText(p.name, dummyIcon));
m_projects->AppendItem({data});
m_projects->AppendItem(wxVector<wxVariant>({data}));

if (!p.avatarUrl.empty())
{
Expand Down

0 comments on commit 207c74e

Please sign in to comment.