Skip to content

Commit

Permalink
[fix] Visual 2022 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrabit committed Mar 30, 2023
1 parent 26273cd commit 0e8683b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vstgui/uidescription/editing/uiattributescontroller.cpp
Expand Up @@ -500,7 +500,7 @@ class MenuController : public TextController, public OptionMenuListenerAdapter,

bool onCommandMenuItemSelected (CCommandMenuItem* item) override
{
performValueChange (item->getTag () == 100 ? "" : item->getTitle ());
performValueChange (item->getTag () == 100 ? UTF8String ("") : item->getTitle ());
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion vstgui/uidescription/editing/uibasedatasource.h
Expand Up @@ -47,7 +47,7 @@ class UIBaseDataSource : public GenericStringListDataBrowserSource, public ICont
{
if (dataBrowser && actionPerformer)
{
std::string newName (filterString.empty () ? "New" : filterString);
std::string newName (filterString.empty () ? "New" : filterString.data ());
if (createUniqueName (newName))
{
addItem (newName.data ());
Expand Down
2 changes: 1 addition & 1 deletion vstgui/uidescription/editing/uicolorscontroller.cpp
Expand Up @@ -358,7 +358,7 @@ bool UIColorsDataSource::dbOnDropInCell (int32_t row, int32_t column, const CPoi
}
else
{
std::string newName (filterString.empty () ? "New" : filterString);
std::string newName (filterString.empty () ? "New" : filterString.data ());
if (createUniqueName (newName))
{
actionPerformer->performColorChange (newName.data (), *dragColor);
Expand Down
2 changes: 1 addition & 1 deletion vstgui/uidescription/editing/uitemplatecontroller.cpp
Expand Up @@ -354,7 +354,7 @@ void UITemplateController::onUIDescTemplateChanged (UIDescription* desc)
{
int32_t rowToSelect = templateDataBrowser->getSelectedRow ();
int32_t index = 0;
auto selectedTemplateStr = selectedTemplateName ? *selectedTemplateName : "";
auto selectedTemplateStr = selectedTemplateName ? selectedTemplateName->data () : "";
templateNames.clear ();
dataSource->setStringList (&templateNames);
std::list<const std::string*> tmp;
Expand Down

0 comments on commit 0e8683b

Please sign in to comment.