|
Hi, You're right. I missed that completely. The reason is that i didn't compile the code. I just assumed that a method named "Write" should override a similar method in the base class. Of course it's possible to rename the method like you suggested. However, I feel that this method should indeed override the base class' Write. After looking at the code for the method, I realized that it duplicates some of the code from the base class. I believe that this should be avoided. In addition, it seems like PdfSigIncWriter is writing all the objects of the document (I'm not 100% sure of that). This is certainly not needed. Bottom line: I can certainly do a rename but I think that it would be better to have a bit of a different architecture. Ilan On 5/15/2014 00:08, zyx wrote:
On Mon, 2014-05-12 at 15:15 +0300, Ilan Zisser wrote:I didn't see this. My revision didn't include PdfSigIncWriter.h. The reason for the warning is obvious, missing "virtual" before the method Write.Hi, it's not that simple, unfortunately. The problem isn't "missing" 'virtual' qualifier (you are not required to repeat 'virtual qualifier on methods which the base class has defined as virtual), the problem is that the function prototype is different from the parent class' Write. Using both patches shows only almost-the-same warning: |
------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
