From 36e6a6b79bfb10d85b18f1a5d0cc5869ae569ea9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Fri, 22 Jan 2010 08:20:27 +0000 Subject: [PATCH] jobid clean usage (follow old Francesco's comments) --- org.glite.lb.doc/src/LBDG-Introduction.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.doc/src/LBDG-Introduction.tex b/org.glite.lb.doc/src/LBDG-Introduction.tex index 7015b50..f06a4e6 100644 --- a/org.glite.lb.doc/src/LBDG-Introduction.tex +++ b/org.glite.lb.doc/src/LBDG-Introduction.tex @@ -551,13 +551,13 @@ library): using namespace glite::jobid; glite_jobid_t cjobid; -JobId *jobid = new JobId(cjobid); +JobId jobid(cjobid); \end{lstlisting} \emph{Note:} This creates copy of the structure, the original structure has to be deallocated as usual. \item parsed from the string: \begin{lstlisting} -JobId jobid(std::string("https://some.host:9000/OirOgeWh_F9sfMZjnIPYhQ")); +JobId jobid("https://some.host:9000/OirOgeWh_F9sfMZjnIPYhQ"); \end{lstlisting} \item from the components: \begin{lstlisting} -- 1.8.2.3