summaryrefslogtreecommitdiff
path: root/regexp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-20 11:58:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-20 12:14:46 +0100
commitce2147ec43c8116c801e9a83f81eea188c2a719e (patch)
treedf1fc8359aeca05364ba4122924f83a55dbd2583 /regexp
parentb2ceee71bafac15c0401893f0475cbcf4164a9f6 (diff)
Code clean up.
Diffstat (limited to 'regexp')
-rw-r--r--regexp/inc/regexp/reclass.hxx2
-rw-r--r--regexp/source/reclass.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/regexp/inc/regexp/reclass.hxx b/regexp/inc/regexp/reclass.hxx
index 4cb28197e429..cc9bf1d1ff3d 100644
--- a/regexp/inc/regexp/reclass.hxx
+++ b/regexp/inc/regexp/reclass.hxx
@@ -364,7 +364,7 @@ class REGEXP_DLLPUBLIC Regexpr
sal_Int32 arg2, sal_Unicode *end);
sal_Bool at_begline_loc_p(const sal_Unicode *local_pattern,
const sal_Unicode *p);
- sal_Bool at_endline_loc_p(const sal_Unicode *p, const sal_Unicode *pend);
+ sal_Bool at_endline_loc_p(const sal_Unicode *p);
reg_errcode_t compile_range(sal_Unicode range_begin, sal_Unicode range_end, sal_Unicode *b);
sal_Bool group_in_compile_stack(compile_stack_type compile_stack,
sal_uInt32 regnum);
diff --git a/regexp/source/reclass.cxx b/regexp/source/reclass.cxx
index 7e051fab7742..8fdadef2c1f3 100644
--- a/regexp/source/reclass.cxx
+++ b/regexp/source/reclass.cxx
@@ -688,7 +688,7 @@ Regexpr::at_begline_loc_p(const sal_Unicode *local_pattern, const sal_Unicode *p
at least one character after the $, i.e., `P < PEND'. */
sal_Bool
-Regexpr::at_endline_loc_p(const sal_Unicode *p, const sal_Unicode * /* pend */ )
+Regexpr::at_endline_loc_p(const sal_Unicode *p)
{
const sal_Unicode *next = p;
//sal_Bool next_backslash = *next == (sal_Unicode)'\\';
@@ -993,7 +993,7 @@ Regexpr::regex_compile()
if ( /* If at end of pattern, it's an operator. */
p == pend
/* Otherwise, depends on what's next. */
- || at_endline_loc_p(p, pend)) {
+ || at_endline_loc_p(p)) {
BUF_PUSH(endline);
} else {
goto normal_char;