1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
+ * src/LyXAction.C (LookupFunc): added a workaround for sun
+ compiler, on the other hand...we don't know if the current code
+ compiles on sun at all...
+
* src/support/filetools.C (CleanupPath): subst fix
* src/insets/insetbib.C (delDatabase): subst fix, this looks
// Returns an action tag from a string.
-int LyXAction::LookupFunc(char const *func)
+int LyXAction::LookupFunc(char const * func)
{
if (!func)
return LFUN_UNKNOWN_ACTION;
valid func table slot. RVDK_PATCH_5 */
int k, l= 0, r = funcCount;
int action = LFUN_UNKNOWN_ACTION;
- char *arg = strchr(func, ' ');
+ char * arg = strchr(const_cast<char*>(func), ' '); // const cast to
+ // help a sun complier, will go away when this func is rewritten
+ // to use std::containers and std::string.
if (arg) *(arg++) = '\0';