Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDTPropertyManager.performOKForced(Object p) - parameter unused(Object parameter p is unused in the method.)
CDTPropertyManager.performOKForced(Object p) - parameter unused [message #1831076] Tue, 11 August 2020 09:11
Eclipse UserFriend
currently the method CDTPropertyManager.performOkForced looks like this:

public static void performOkForced(Object p) {
	saveDone = true;
	try {
		CoreModel.getDefault().setProjectDescription(project, prjd);
	} catch (CoreException e) {
		CUIPlugin.logError(Messages.AbstractPage_11 + e.getLocalizedMessage());
	}

	if (pages.size() == 0) {
		project = null;
		prjd = null;
		saveDone = false;
	}
}


As you can see,
p
is never used. It looks wrong for me, but I'm unsure whether the parameter is just obsolete or it should be used in the method.
I noticed an unexpected behavior that the data inside p is never stored. Unfortunately it's a bit overhead to explain in detail my case. In short: I created a project properties page similar to "paths and symbols" with a tab similar to "IncludesTab" in which I want to save paths for languages. Those don't get stored and I wonder if this code snippet is the reason for that.
Previous Topic:Build might be incomplete
Next Topic:CMSIS zone rzone files not found?
Goto Forum:
  


Current Time: Fri Apr 26 03:48:27 GMT 2024

Powered by FUDForum. Page generated in 0.02833 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top