[yast-commit] r39847 - in /branches/tmp/mvidner/ui-as-namespace/core: base/tools/ycpc/ycpc.cc libycp/src/StaticDeclaration.cc libycp/src/YCode.cc wfm/src/Y2WFMComponent.cc
Author: mvidner Date: Tue Jul 31 19:25:04 2007 New Revision: 39847 URL: http://svn.opensuse.org/viewcvs/yast?rev=39847&view=rev Log: Fixed warnings abour const char *. Modified: branches/tmp/mvidner/ui-as-namespace/core/base/tools/ycpc/ycpc.cc branches/tmp/mvidner/ui-as-namespace/core/libycp/src/StaticDeclaration.cc branches/tmp/mvidner/ui-as-namespace/core/libycp/src/YCode.cc branches/tmp/mvidner/ui-as-namespace/core/wfm/src/Y2WFMComponent.cc Modified: branches/tmp/mvidner/ui-as-namespace/core/base/tools/ycpc/ycpc.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/ui-as-namespace/co... ============================================================================== --- branches/tmp/mvidner/ui-as-namespace/core/base/tools/ycpc/ycpc.cc (original) +++ branches/tmp/mvidner/ui-as-namespace/core/base/tools/ycpc/ycpc.cc Tue Jul 31 19:25:04 2007 @@ -59,7 +59,7 @@ static int freshen = 0; // freshen recompilation static int force = 0; // force recompilation static int no_implicit_namespaces = 0; // don't preload implicit namespaces -static char *ui_name = 0; +static const char *ui_name = 0; #define UI_QT_NAME "qt" #define UI_NCURSES_NAME "ncurses" Modified: branches/tmp/mvidner/ui-as-namespace/core/libycp/src/StaticDeclaration.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/ui-as-namespace/co... ============================================================================== --- branches/tmp/mvidner/ui-as-namespace/core/libycp/src/StaticDeclaration.cc (original) +++ branches/tmp/mvidner/ui-as-namespace/core/libycp/src/StaticDeclaration.cc Tue Jul 31 19:25:04 2007 @@ -49,7 +49,7 @@ // list of namespace prefixes to mark as 'predefined' // They will be auto-loaded by the scanner on first appearance // -static char *predefined[] = { +static const char *predefined[] = { "UI", "WFM", "SCR", "Pkg", 0 }; //------------------------------------------------------------------------ @@ -61,7 +61,7 @@ #if DO_DEBUG y2debug ("m_declTable %p", m_declTable); #endif - char **pptr = predefined; + const char **pptr = predefined; SymbolEntryPtr sentry; Point *point = new Point ("<predefined>"); while (*pptr != 0) Modified: branches/tmp/mvidner/ui-as-namespace/core/libycp/src/YCode.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/ui-as-namespace/co... ============================================================================== --- branches/tmp/mvidner/ui-as-namespace/core/libycp/src/YCode.cc (original) +++ branches/tmp/mvidner/ui-as-namespace/core/libycp/src/YCode.cc Tue Jul 31 19:25:04 2007 @@ -102,7 +102,7 @@ string YCode::toString (ykind kind) { - static char *names[] = { + static const char *names[] = { "yxError", // [1] Constants (-> YCPValue, except(!) locale -> yeLocale) "ycVoid", "ycBoolean", "ycInteger", "ycFloat", // constants Modified: branches/tmp/mvidner/ui-as-namespace/core/wfm/src/Y2WFMComponent.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/ui-as-namespace/co... ============================================================================== --- branches/tmp/mvidner/ui-as-namespace/core/wfm/src/Y2WFMComponent.cc (original) +++ branches/tmp/mvidner/ui-as-namespace/core/wfm/src/Y2WFMComponent.cc Tue Jul 31 19:25:04 2007 @@ -202,7 +202,7 @@ const char* Y2WFMComponent::get_env_lang () const { - static char* names[] = { "LANGUAGE", "LC_ALL", "LC_MESSAGES", "LANG" }; + static const char* names[] = { "LANGUAGE", "LC_ALL", "LC_MESSAGES", "LANG" }; for (size_t i = 0; i < sizeof (names)/sizeof (names[0]); i++) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mvidner@svn.opensuse.org