Commit 63ea2c95 authored by Sven Strickroth's avatar Sven Strickroth

Drop superfluous parameter

Signed-off-by: Sven Strickroth's avatarSven Strickroth <email@cs-ware.de>
parent 5411986a
......@@ -285,7 +285,7 @@ int CTortoiseGitBlameView::OnCreate(LPCREATESTRUCT lpcs)
TRACE0("Failed to create view\n");
return -1; // fail to create
}
m_TextView.Init(0,FALSE);
m_TextView.Init(-1);
m_TextView.ShowWindow( SW_SHOW);
CreateFont();
SendEditor(SCI_SETREADONLY, TRUE);
......
......@@ -154,7 +154,7 @@ BOOL CImportPatchDlg::OnInitDialog()
TRACE0("Failed to create output windows\n");
return -1; // fail to create
}
m_wndOutput.Init(-1, FALSE);
m_wndOutput.Init(-1);
m_wndOutput.Call(SCI_SETREADONLY, TRUE);
m_tooltips.AddTool(IDC_CHECK_3WAY,IDS_AM_3WAY_TT);
......
......@@ -195,7 +195,7 @@ BOOL CRebaseDlg::OnInitDialog()
TRACE0("Failed to create output windows\n");
return -1; // fail to create
}
m_wndOutputRebase.Init(0, FALSE);
m_wndOutputRebase.Init(-1);
m_wndOutputRebase.Call(SCI_SETREADONLY, TRUE);
m_tooltips.AddTool(IDC_REBASE_CHECK_FORCE,IDS_REBASE_FORCE_TT);
......
......@@ -161,7 +161,7 @@ static std::unique_ptr<UINT[]> Icon2Image(HICON hIcon)
return imagePixels;
}
void CSciEdit::Init(LONG lLanguage, BOOL bLoadSpellCheck)
void CSciEdit::Init(LONG lLanguage)
{
//Setup the direct access data
m_DirectFunction = SendMessage(SCI_GETDIRECTFUNCTION, 0, 0);
......@@ -201,7 +201,7 @@ void CSciEdit::Init(LONG lLanguage, BOOL bLoadSpellCheck)
// look for dictionary files and use them if found
long langId = GetUserDefaultLCID();
if(bLoadSpellCheck)
if (lLanguage >= 0)
{
if ((lLanguage != 0)||(((DWORD)CRegStdDWORD(_T("Software\\TortoiseGit\\Spellchecker"), FALSE))==FALSE))
{
......
......@@ -84,7 +84,10 @@ public:
* method!
*/
void Init(const ProjectProperties& props);
void Init(LONG lLanguage = 0,BOOL bLoadSpellCheck=TRUE);
/** Initialize the scintilla control.
* lLanguage for initialiring spell checker: 0 = auto-detect language, -1 disable, or language code
*/
void Init(LONG lLanguage = 0);
void SetIcon(const std::map<int, UINT> &icons);
/**
* Execute a scintilla command, e.g. SCI_GETLINE.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment