[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Question about RTF import filter
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2003-08-25 6:59:45
[Download RAW message or body]

I have a question about the RTF import filter.

Could someone please explain me the difference between the following methods:


/**
 * Sets the value of a boolean RTF property specified by token.
 * @param property the property to set
 */
void RTFImport::setToggleProperty( RTFProperty *property )
{
    ((bool *)this)[property->offset] = (!token.hasParam || token.value != 0);
}

/**
 * Sets a boolean RTF property specified by token.
 * @param property the property to set
 */
void RTFImport::setFlagProperty( RTFProperty *property )
{
    ((bool *)this)[property->offset] = property->value;
}


I have the strong feeling that they are the same but I would prefer some 
confirmation before I would delete the first one. (Both are used for the 
underline keywords. In theory, there is not any syntax difference between the 
different underline keywords.)

Thank you in advance!

Have a nice day!
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic