trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: February 2011

Re: [trinity-users] iccconfig - Makefile.am: noinst_HEADERS = iccconfig.h (is this right?)

From: "David C. Rankin" <drankinatty@...>
Date: Fri, 11 Feb 2011 11:21:14 -0600
On 02/11/2011 09:57 AM, David C. Rankin wrote:
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function
> ‘void KICCConfig::load(bool)’:
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:292:38: error:
> expected type-specifier
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:292:38: error: cannot
> convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:292:38: error:
> expected ‘,’ or ‘;’
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function
> ‘virtual void KICCConfig::save()’:
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:362:37: error:
> expected type-specifier
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:362:37: error: cannot
> convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization
> /home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:362:37: error:
> expected ‘,’ or ‘;’

Tim, Robert,

   Looking at the iccconfig.cpp code, the errors are generated after each 
KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI::KRandrSimpleAPI(); call. 
eg (line numbers mark line specified in error above):

void KICCConfig::load(bool useDefaults )
{
   //Update the toggle buttons with the current configuration
   int i;
   int j;

<snip>

   XRROutputInfo *output_info;
   KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI::KRandrSimpleAPI();

   config->setReadDefaults( useDefaults );
292


void KICCConfig::save()
{
	int i;
	int j;
	KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI::KRandrSimpleAPI();

	// Write system configuration
362	systemconfig->setGroup(NULL);

   I don't know if make is complaining about the config->setReadDefaults and 
systemconfig->setGroup calls or if it is actually complaining about the 
KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI::KRandrSimpleAPI(); call. I 
suspect the latter. Dunno if this help, but I thought I would lay it out in 
case it sparks an idea. Could it be a class initialization/constructor problem 
for KICCConfig?


-- 
David C. Rankin, J.D.,P.E.