// line, up until the current cursor position.
int x = 0;
int max = line.Length() - (GetLineEndPosition(GetCurrentLine()) - GetCurrentPos()) - offset;
- while (line[x] == '\t' || line[x] == ' ' && x < max)
+ while ((line[x] == '\t' || line[x] == ' ') && x < max)
indent += line[x++];
// Select any indent in front of the cursor to be removed. If
tp++;
else
tp--;
- if (tp >= 0 && tp < 3 || (hasDay && tp == 3))
+ if ((tp >= 0 && tp < 3) || (hasDay && tp == 3))
{
Highlight(tp);
return;
if (strcmp(tmp, "") == 0)
params->paramValues[i] = 0;
else if (strcmp(tmp, "''") == 0)
- params->paramValues[i] = "";
+ params->paramValues[i] = (char *)"";
else if (strcmp(tmp, "\\'\\'") == 0)
- params->paramValues[i] = "''";
+ params->paramValues[i] = (char *)"''";
else
params->paramValues[i] = tmp;
}
if (strcmp(tmp, "") == 0)
params->paramValues[i] = 0;
else if (strcmp(tmp, "''") == 0)
- params->paramValues[i] = "";
+ params->paramValues[i] = (char *)"";
else if (strcmp(tmp, "\\'\\'") == 0)
- params->paramValues[i] = "''";
+ params->paramValues[i] = (char *)"''";
else
params->paramValues[i] = tmp;
}
{
dlgProperty::OnOK(ev);
- if (role && role->GetCanLogin() != chkCanLogin->GetValue() == !btnOK->IsEnabled())
+ if (role && ((role->GetCanLogin() != chkCanLogin->GetValue()) == !btnOK->IsEnabled()))
{
// LOGIN attribute changed successfully; need to put object under different collection
}
tmp += wxT("\n CACHE ") + txtCache->GetValue();
if (chkCycled->GetValue() != sequence->GetCycled())
+ {
if (chkCycled->GetValue())
tmp += wxT("\n CYCLE");
else
tmp += wxT("\n NO CYCLE");
+ }
if (!tmp.IsEmpty())
{
chkAnalyze->Enable(isVacuum);
bool isReindex = (rbxAction->GetSelection() == 2);
- sbxReindexOptions->Enable(isReindex && object->GetMetaType() == PGM_DATABASE || object->GetMetaType() == PGM_INDEX || object->GetMetaType() == PGM_PRIMARYKEY || object->GetMetaType() == PGM_UNIQUE);
+ sbxReindexOptions->Enable(isReindex && (object->GetMetaType() == PGM_DATABASE || object->GetMetaType() == PGM_INDEX || object->GetMetaType() == PGM_PRIMARYKEY || object->GetMetaType() == PGM_UNIQUE));
chkRecreate->Enable(isReindex && object->GetMetaType() == PGM_INDEX);
}
bool haveCR = reCR->Matches(sqlQuery->GetText());
int mode = GetLineEndingStyle();
- if (haveLF && haveCR ||
- haveLF && haveCRLF ||
- haveCR && haveCRLF)
+ if ((haveLF && haveCR) ||
+ (haveLF && haveCRLF) ||
+ (haveCR && haveCRLF))
{
wxMessageBox(_("This file contains mixed line endings. They will be converted to the current setting."), _("Warning"), wxICON_INFORMATION);
sqlQuery->ConvertEOLs(mode);
long cboToRate(wxComboBox *cbo)
{
- long rate;
+ long rate = 0;
if (cbo->GetValue() == _("Don't refresh"))
rate = 0;
static double *M_aa_array, *M_bb_array;
static int M_size = -1;
-static char *M_fft_error_msg = "\'M_fast_mul_fft\', Out of memory";
+static char *M_fft_error_msg = (char *)"\'M_fast_mul_fft\', Out of memory";
/****************************************************************************/
void M_free_all_fft()
arg += qtIdent(argNamesArray.Item(i));\r
\r
if (!argModesArray.Item(i).IsEmpty())\r
+ {\r
if (arg.IsEmpty())\r
arg += argModesArray.Item(i);\r
else\r
arg += wxT(" ") + argModesArray.Item(i);\r
+ }\r
}\r
else\r
{\r
arg += argModesArray.Item(i);\r
\r
if (!argNamesArray.Item(i).IsEmpty())\r
+ {\r
if (arg.IsEmpty())\r
arg += qtIdent(argNamesArray.Item(i));\r
else\r
arg += wxT(" ") + qtIdent(argNamesArray.Item(i));\r
+ }\r
}\r
\r
if (!arg.IsEmpty())\r