Re: [Noob] Code question
Awesome!!! Thanks a lot Patricia. For the link and the definition. :-D On 02.10.2016 21:58, Patricia Shanahan wrote: Here's an answer to part of your question. On 10/2/2016 9:49 AM, Peter Kovacs wrote: ... What does SAL NO VTABLE mean? Is it macro code? ... It's time to start using the OpenOffice OpenGrok at http://opengrok.adfinis-sygroup.org/source/ (Or use find and grep in combination, but that takes longer). Searching for SAL_NO_VTABLE as a Definition in the trunk shows that it is a #define in main/sal/inc/sal/types.h Viewing the code in types.h: 314/** Use this for pure virtual classes, e.g. class SAL_NO_VTABLE Foo { ... 315This hinders the compiler from setting a generic vtable stating that 316a pure virtual function was called and thus slightly reduces code size. 317*/ 318#ifdef _MSC_VER 319# define SAL_NO_VTABLE __declspec(novtable) 320#else 321# define SAL_NO_VTABLE 322#endif - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [Noob] Code question
Here's an answer to part of your question. On 10/2/2016 9:49 AM, Peter Kovacs wrote: ... What does SAL NO VTABLE mean? Is it macro code? ... It's time to start using the OpenOffice OpenGrok at http://opengrok.adfinis-sygroup.org/source/ (Or use find and grep in combination, but that takes longer). Searching for SAL_NO_VTABLE as a Definition in the trunk shows that it is a #define in main/sal/inc/sal/types.h Viewing the code in types.h: 314/** Use this for pure virtual classes, e.g. class SAL_NO_VTABLE Foo { ... 315This hinders the compiler from setting a generic vtable stating that 316a pure virtual function was called and thus slightly reduces code size. 317*/ 318#ifdef _MSC_VER 319# define SAL_NO_VTABLE __declspec(novtable) 320#else 321# define SAL_NO_VTABLE 322#endif - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
[Noob] Code question
Hello all. I am reviewing code whenever I find time. I find the code sometimes hard to read, due lack of experience with c++. So I would like to ask if someone can confirm / explain the following definition to me: File: basicmanagerrepository.hxx Class BasicManager; Namespace basic { class SAL NO VTABLE BasicManagerCreationlistener { ... Question: I am irritated by the lonely global class BasicManager. So the file defines the class global and the other class in the name space basic? (Both are independent by this definition( not talking about the implementaition)? What does SAL NO VTABLE mean? Is it macro code? You find the file in main/basic/inc/basic All the best Peter -- Disclaimer: Diese Nachricht stammt aus einem Google Account. Ihre Antwort wird in der Google Cloud Gespeichert und durch Google Algorythmen zwecks werbeanaöysen gescannt. Es ist derzeit nicht auszuschließen das ihre Nachricht auch durch einen NSA Mitarbeiter geprüft wird. Durch kommunikation mit diesen Account stimmen Sie zu das ihre Mail, ihre Kontaktdaten und die Termine die Sie mit mir vereinbaren online zu Google konditionen in der Googlecloud gespeichert wird. Sollten sie dies nicht wünschen kontaktieren sie mich bitte Umgehend um z.B. alternativen zu verhandeln.