ide: Fixed some MSBT warnings

This commit is contained in:
Mirek Fidler 2024-10-15 12:34:34 +02:00
parent 9298d61657
commit 4ab7087d6b
7 changed files with 8 additions and 8 deletions

View file

@ -440,7 +440,7 @@ String Ctrl::GetDesc() const
String Name(const Ctrl *ctrl)
{
return ctrl ? ctrl->Name() : "NULL";
return ctrl ? ctrl->Name() : String("NULL");
}
String Desc(const Ctrl *ctrl)

View file

@ -18,7 +18,7 @@ String AndroidBuilderUtils::GetAssemblyDir(const String& packageDir, const Strin
if (pos >= 0 && pos < assemblyDir.GetCount())
assemblyDir.Trim(pos);
return assemblyDir != packageDir ? assemblyDir : "";
return assemblyDir != packageDir ? assemblyDir : String();
}
}

View file

@ -174,7 +174,7 @@ void MakeBuild::SaveCCJ(const String& fn, bool exporting)
String makefile;
Vector<String> uppdirs = GetUppDirs();
String uppout = exporting ? GetUppOut() : ".cache/upp.out";
String uppout = exporting ? GetUppOut() : String(".cache/upp.out");
Index<String> allconfig = PackageConfig(GetIdeWorkspace(), 0, bm, mainconfigparam, host, *b);
bool win32 = allconfig.Find("WIN32") >= 0;

View file

@ -283,7 +283,7 @@ void MakeBuild::SaveMakeFile(const String& fn, bool exporting)
String makefile;
Vector<String> uppdirs = GetUppDirs();
String uppout = exporting ? GetUppOut() : ".cache/upp.out";
String uppout = exporting ? GetUppOut() : String(".cache/upp.out");
String inclist;
Index<String> allconfig = PackageConfig(GetIdeWorkspace(), 0, bm, mainconfigparam, host, *b);
@ -320,7 +320,7 @@ void MakeBuild::SaveMakeFile(const String& fn, bool exporting)
inclist << " -I$(UPPOUT)"; // build_info.h is created there
makefile << "\n"
"UPPOUT = " << (exporting ? "_out/" : GetMakePath(AdjustMakePath(AppendFileName(uppout, "")), win32)) << "\n"
"UPPOUT = " << (exporting ? "_out/" : GetMakePath(AdjustMakePath(AppendFileName(uppout, String())), win32)) << "\n"
"CINC = " << inclist << "\n"
"Macro = ";

View file

@ -124,7 +124,7 @@ String Nest::PackagePath0(const String& name)
if(FileExists(p)) return p;
}
return d.GetCount() ? NormalizePath(AppendFileName(AppendFileName(d[0], uppfile),
GetFileName(uppfile)) + ".upp") : "";
GetFileName(uppfile)) + ".upp") : String();
}
String Nest::PackagePath(const String& name)

View file

@ -63,7 +63,7 @@ VectorMap<String, String> GetMethodVars(const String& method)
String GetMethodPath(const String& method)
{
return the_ide ? the_ide->GetMethodName(method) : "";
return the_ide ? the_ide->GetMethodName(method) : String();
}
bool IdeIsBuilding()

View file

@ -448,7 +448,7 @@ String IdeCharsetName(byte charset) {
void PutSpellCheckComments(StringStream& out, int sc)
{
if(!IsNull(sc))
out << " spellcheck_comments " << AsCString(sc ? LNGAsText(sc) : "");
out << " spellcheck_comments " << AsCString(sc ? LNGAsText(sc) : String());
}
bool Package::Save(const char *path) const {