void Load()
{
- if(loadedCompiler)
+ CompilerConfig compiler = loadedCompiler;
+ if(compiler)
{
- CompilerConfig compiler = loadedCompiler;
dirs[includes].strings = compiler.includeDirs;
dirs[libraries].strings = compiler.libraryDirs;
dirs[executables].strings = compiler.executableDirs;
bool NotifyModifiedDocument(PathBox pathBox)
{
- if(loadedCompiler)
+ CompilerConfig compiler = loadedCompiler;
+ if(compiler)
{
- CompilerConfig compiler = loadedCompiler;
if(pathBox == ecp)
compiler.ecpCommand = pathBox.slashPath;
else if(pathBox == ecc)
void Load()
{
- if(loadedCompiler)
+ CompilerConfig compiler = loadedCompiler;
+ if(compiler)
{
- CompilerConfig compiler = loadedCompiler;
bool disabled = compiler.readOnly;
bool isVC = compiler.type.isVC;
ecp.path = compiler.ecpCommand;
bool NotifyModified(NamedStringsBox stringsBox)
{
- loadedCompiler.environmentVars = stringsBox.namedStrings;
- modifiedDocument = true;
- compilersTab.modifiedDocument = true;
+ CompilerConfig compiler = loadedCompiler;
+ if(compiler)
+ {
+ compiler.environmentVars = stringsBox.namedStrings;
+ modifiedDocument = true;
+ compilersTab.modifiedDocument = true;
+ }
return true;
}
};
void Load()
{
- if(loadedCompiler)
+ CompilerConfig compiler = loadedCompiler;
+ if(compiler)
{
- CompilerConfig compiler = loadedCompiler;
envVars.namedStrings = compiler.environmentVars;
modifiedDocument = false;
bool NotifyModified(EditBox editBox)
{
- if(loadedCompiler)
+ CompilerConfig compiler = loadedCompiler;
+ if(compiler)
{
- CompilerConfig compiler = loadedCompiler;
compiler.distccHosts = editBox.contents;
modifiedDocument = true;
compilersTab.modifiedDocument = true;
void Load()
{
- if(loadedCompiler)
+ CompilerConfig compiler = loadedCompiler;
+ if(compiler)
{
- CompilerConfig compiler = loadedCompiler;
bool disabled = compiler.readOnly;
targetPlatform.currentRow = targetPlatform.FindRow(compiler.targetPlatform);
numJobs = compiler.numJobs;