Mercurial > emacs
view test/cedet/tests/testnsp.cpp @ 109746:d6fc586a0872
Use const char* for -Wwrite_strings.
* keyboard.h (_widget_value): name, value and key are const char*.
* nsfont.m (ns_descriptor_to_entity): Use const char*.
* nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
(addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
* nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
(addDisplayItemWithImage): Use const char*.
author | Jan D <jan.h.d@swipnet.se> |
---|---|
date | Wed, 11 Aug 2010 10:58:56 +0200 |
parents | 7f4c7f5c0eba |
children | ef719132ddfa |
line wrap: on
line source
// Test NSP (Name space parent) // // Test dereferencing parents based on local parent scope. // // Derived from data David Engster provided. namespace nsp { class rootclass { public: int fromroot() {}; }; } namespace nsp { class childclass : public rootclass { public: int fromchild() {}; }; } void myfcn_not_in_ns (void) { nsp::childclass test; test.// -1- ; // #1# ( "fromchild" "fromroot" ) } // arch-tag: 2e9c6bf7-1574-440f-ba66-5c8fe034cdec