Permalink
Browse files

make style

  • Loading branch information...
1 parent 36f8b14 commit 5a6451fb5fd43265253574d19f2e394e8e2cb0e3 @gleu committed Mar 12, 2012
@@ -280,16 +280,16 @@ wxString dlgTrigger::GetSql()
if (!trigger ||
(cbFunction->GetValue() == wxString::Format(wxT("<%s>"), _("Inline EDB-SPL"))
&& (
- txtBody->GetText() != trigger->GetSource() ||
- chkRow->GetValue() != (trigger->GetTriggerType() & TRIGGER_TYPE_ROW) ||
- chkInsert->GetValue() != (trigger->GetTriggerType() & TRIGGER_TYPE_INSERT ? true : false) ||
- chkUpdate->GetValue() != (trigger->GetTriggerType() & TRIGGER_TYPE_UPDATE ? true : false) ||
- chkDelete->GetValue() != (trigger->GetTriggerType() & TRIGGER_TYPE_DELETE ? true : false) ||
- chkTruncate->GetValue() != (trigger->GetTriggerType() & TRIGGER_TYPE_TRUNCATE ? true : false) ||
- rdbFires->GetSelection() != (trigger->GetTriggerType() & TRIGGER_TYPE_BEFORE ? 0 : TRIGGER_TYPE_INSTEAD ? 2 : 1)
- )
+ txtBody->GetText() != trigger->GetSource() ||
+ chkRow->GetValue() != (trigger->GetTriggerType() & TRIGGER_TYPE_ROW) ||
+ chkInsert->GetValue() != (trigger->GetTriggerType() & TRIGGER_TYPE_INSERT ? true : false) ||
+ chkUpdate->GetValue() != (trigger->GetTriggerType() & TRIGGER_TYPE_UPDATE ? true : false) ||
+ chkDelete->GetValue() != (trigger->GetTriggerType() & TRIGGER_TYPE_DELETE ? true : false) ||
+ chkTruncate->GetValue() != (trigger->GetTriggerType() & TRIGGER_TYPE_TRUNCATE ? true : false) ||
+ rdbFires->GetSelection() != (trigger->GetTriggerType() & TRIGGER_TYPE_BEFORE ? 0 : TRIGGER_TYPE_INSTEAD ? 2 : 1)
+ )
)
- )
+ )
{
if (cbFunction->GetValue() == wxString::Format(wxT("<%s>"), _("Inline EDB-SPL")))
sql += wxT("CREATE OR REPLACE TRIGGER ");
@@ -834,9 +834,9 @@ void frmDatabaseDesigner::OnChangeConnection(wxCommandEvent &event)
if (newconn && createdNewConn)
{
#if wxCHECK_VERSION(2, 9, 0)
- cbConnection->Insert(newconn->GetName(), CreateBitmap(GetServerColour(newconn)), sel, (wxClientData*)newconn);
+ cbConnection->Insert(newconn->GetName(), CreateBitmap(GetServerColour(newconn)), sel, (wxClientData *)newconn);
#else
- cbConnection->Insert(newconn->GetName(), CreateBitmap(GetServerColour(newconn)), sel, (void*)newconn);
+ cbConnection->Insert(newconn->GetName(), CreateBitmap(GetServerColour(newconn)), sel, (void *)newconn);
#endif
cbConnection->SetSelection(sel);
OnChangeConnection(event);
@@ -1188,7 +1188,7 @@ void frmEditGrid::OnDelete(wxCommandEvent &event)
wxString prompt;
prompt.Printf(wxPLURAL("Are you sure you wish to delete the selected row?",
- "Are you sure you wish to delete the %d selected rows?", i));
+ "Are you sure you wish to delete the %d selected rows?", i));
wxMessageDialog msg(this, prompt, _("Delete rows?"), wxYES_NO | wxICON_QUESTION);
if (msg.ShowModal() != wxID_YES)
@@ -2569,7 +2569,7 @@ void frmQuery::OnQueryComplete(wxCommandEvent &ev)
showMessage(wxString::Format(
wxPLURAL("%ld row retrieved.", "%ld rows retrieved.", sqlResult->NumRows())),
- _("OK."));
+ _("OK."));
}
else
{
@@ -21,7 +21,7 @@
#include "hotdraw/figures/defaultAttributes/hdFontAttribute.h"
#include "hotdraw/figures/hdAttribute.h"
-wxFont* hdFontAttribute::defaultFont = NULL;
+wxFont *hdFontAttribute::defaultFont = NULL;
hdFontAttribute::hdFontAttribute():
hdAttribute()
@@ -21,7 +21,7 @@ class hdFontAttribute : public hdAttribute
virtual void callDefaultChangeDialog(wxWindow *owner = NULL);
virtual void apply(wxBufferedDC &context);
wxFont &font();
- static wxFont* defaultFont;
+ static wxFont *defaultFont;
static void InitFont();
protected:
wxFont fontAttributes;
@@ -31,7 +31,7 @@ class sysLogger : public wxLog
{
public:
#if wxCHECK_VERSION(2, 9, 0)
- void DoLogTextAtLevel(wxLogLevel level, const wxString& msg);
+ void DoLogTextAtLevel(wxLogLevel level, const wxString &msg);
#else
virtual void DoLog(wxLogLevel level, const wxChar *msg, time_t timestamp);
#endif
@@ -133,9 +133,9 @@ void wxLogScriptVerbose(const wxChar *szFormat, ...)
#endif
#if wxCHECK_VERSION(2, 9, 0)
- void sysLogger::DoLogTextAtLevel(wxLogLevel level, const wxString& msg)
+void sysLogger::DoLogTextAtLevel(wxLogLevel level, const wxString &msg)
#else
- void sysLogger::DoLog(wxLogLevel level, const wxChar *msg, time_t timestamp)
+void sysLogger::DoLog(wxLogLevel level, const wxChar *msg, time_t timestamp)
#endif
{
wxString msgtype, preamble;
@@ -220,7 +220,7 @@ void wxLogScriptVerbose(const wxChar *szFormat, ...)
// Build the message.
fullmsg << time->FormatISODate() << wxT(" ") <<
- time->FormatISOTime() << wxT(" ") << msgtype << wxT(": ") << msg;
+ time->FormatISOTime() << wxT(" ") << msgtype << wxT(": ") << msg;
// Make sure to delete the time that we allocated
delete time;

0 comments on commit 5a6451f

Please sign in to comment.