Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Patch for inserting implementation
(1/1)
zetab:
Hello,
If I remember it right, this is once reported by ollydbg in an old bug ticket, but somehow it's not applied to the source.
The patch fixes the wrong return type when inserting implementation of functions whose return type have multiple words, e.g. "unsigned int func();".
--- Code: ---Index: src/plugins/codecompletion/codecompletion.cpp
===================================================================
--- src/plugins/codecompletion/codecompletion.cpp (revision 9807)
+++ src/plugins/codecompletion/codecompletion.cpp (working copy)
@@ -2744,7 +2744,7 @@
str << ed->GetLineIndentString(line - 1);
if (addDoxgenComment)
str << _T("/** @brief ") << token->m_Name << _T("\n *\n * @todo: document this function\n */\n");
- wxString type = token->m_BaseType;
+ wxString type = token->m_FullType;
if ((type.Last() == _T('&') || type.Last() == _T('*')) && type[type.Len() - 2] == _T(' '))
{
type[type.Len() - 2] = type.Last();
--- End code ---
ollydbg:
Hi, thanks for the remind, I really forgot this.
The good news is that I can still find the old bug report, I just did a Google search by
--- Code: --- return type ollydbg site:alpha0010.github.io/cb-history
--- End code ---
Credit goes to alpha!!
Now, I find it here:
Bug 18526 - Code::Blocks History
There are a lot of discussions two years ago, I will read them.
Navigation
[0] Message Index
Go to full version