[Pinfo-devel] r247 - pinfo/branches/cxx/src
Nathanael Nerode
neroden-guest at costa.debian.org
Mon Sep 26 03:46:43 UTC 2005
Author: neroden-guest
Date: 2005-09-26 03:46:41 +0000 (Mon, 26 Sep 2005)
New Revision: 247
Modified:
pinfo/branches/cxx/src/mainfunction.cxx
pinfo/branches/cxx/src/mainfunction.h
pinfo/branches/cxx/src/manual.cxx
Log:
A little more pass-by-value -> pass-by-const-reference conversion.
Modified: pinfo/branches/cxx/src/mainfunction.cxx
===================================================================
--- pinfo/branches/cxx/src/mainfunction.cxx 2005-09-26 03:42:08 UTC (rev 246)
+++ pinfo/branches/cxx/src/mainfunction.cxx 2005-09-26 03:46:41 UTC (rev 247)
@@ -408,7 +408,7 @@
* Main work function
*/
WorkRVal
-work(const vector<string> my_message, string type_str, FILE * id, int tag_table_pos)
+work(const vector<string>& my_message, string type_str, FILE * id, int tag_table_pos)
{
static WorkRVal rval;
FILE *pipe;
Modified: pinfo/branches/cxx/src/mainfunction.h
===================================================================
--- pinfo/branches/cxx/src/mainfunction.h 2005-09-26 03:42:08 UTC (rev 246)
+++ pinfo/branches/cxx/src/mainfunction.h 2005-09-26 03:46:41 UTC (rev 247)
@@ -50,6 +50,6 @@
* id: file descriptor of current info file
* tag_table_pos: position in tag table of the current node (needed for history)
*/
-WorkRVal work (const std::vector<std::string> message, std::string type,
+WorkRVal work (const std::vector<std::string>& message, std::string type,
FILE * id, int tag_table_pos);
#endif
Modified: pinfo/branches/cxx/src/manual.cxx
===================================================================
--- pinfo/branches/cxx/src/manual.cxx 2005-09-26 03:42:08 UTC (rev 246)
+++ pinfo/branches/cxx/src/manual.cxx 2005-09-26 03:46:41 UTC (rev 247)
@@ -158,7 +158,7 @@
* manual sections.
*/
static bool
-is_in_manlinks(vector<string> manlinks, string to_find)
+is_in_manlinks(const vector<string>& manlinks, string to_find)
{
/* Normalize case */
string to_find_uppercase = string_toupper(to_find);
@@ -540,7 +540,7 @@
}
static void
-printmanual(vector<string> message)
+printmanual(const vector<string>& message)
{
/* printer fd */
FILE *prnFD;
More information about the Pinfo-devel
mailing list