diff options
| author | 2011-09-27 18:16:06 +0000 | |
|---|---|---|
| committer | 2011-09-27 18:16:06 +0000 | |
| commit | 65162e49f6fec3bb077c3ba980cde109337ee134 (patch) | |
| tree | d79082d0d31cf67ed14e0f1b054a90a814135ad9 | |
| parent | implements #1219 (diff) | |
| download | KVIrc-65162e49f6fec3bb077c3ba980cde109337ee134.tar.gz KVIrc-65162e49f6fec3bb077c3ba980cde109337ee134.tar.bz2 KVIrc-65162e49f6fec3bb077c3ba980cde109337ee134.zip | |
fix warnings
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5980 17fca916-40b9-46aa-a4ea-0a15b648b75c
| -rw-r--r-- | src/kvilib/config/kvi_shortcuts.h | 1 | ||||
| -rw-r--r-- | src/modules/perlcore/xs.inc | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/kvilib/config/kvi_shortcuts.h b/src/kvilib/config/kvi_shortcuts.h index 4c286b635..3db8340f8 100644 --- a/src/kvilib/config/kvi_shortcuts.h +++ b/src/kvilib/config/kvi_shortcuts.h @@ -77,7 +77,6 @@ * \def KVI_SHORTCUTS_INPUT_NEXT_WORD Move to the end of the next word * \def KVI_SHORTCUTS_INPUT_NEXT_WORD_SELECT Select up to the end of the next word * \def KVI_SHORTCUTS_INPUT_PASTE Paste the clipboard contents (same as middle mouse click) -* \def KVI_SHORTCUTS_INPUT_PASTE_2 Paste the clipboard contents (same as middle mouse click) * \def KVI_SHORTCUTS_INPUT_PLAINTEXT Insert the 'non-crypt' (plain text) KVIrc control character used to disable encryption of the current text line * \def KVI_SHORTCUTS_INPUT_PREV_CHAR Move the cursor to the left * \def KVI_SHORTCUTS_INPUT_PREV_CHAR_SELECT Move the selection to the left diff --git a/src/modules/perlcore/xs.inc b/src/modules/perlcore/xs.inc index ca3b414db..b7a598bba 100644 --- a/src/modules/perlcore/xs.inc +++ b/src/modules/perlcore/xs.inc @@ -235,8 +235,8 @@ XS(XS_KVIrc_getLocal) { pVar->asString(tmp); hack = tmp; - RETVAL = hack.ptr(); - } else RETVAL = ""; + } else hack = ""; + RETVAL = hack.ptr(); } #line 242 "KVIrc.c" sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; @@ -299,8 +299,8 @@ XS(XS_KVIrc_getGlobal) { pVar->asString(tmp); hack = tmp; - RETVAL = hack.ptr(); - } else RETVAL = ""; + } else hack = ""; + RETVAL = hack.ptr(); } #line 306 "KVIrc.c" sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; @@ -365,10 +365,10 @@ XS(XS_KVIrc_eval) } else { g_szLastReturnValue = ""; } - RETVAL = g_szLastReturnValue.ptr(); } else { - RETVAL = ""; + g_szLastReturnValue = ""; } + RETVAL = g_szLastReturnValue.ptr(); #line 373 "KVIrc.c" sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG; } |
