From: Aleš Křenek Date: Fri, 22 Jan 2010 08:20:27 +0000 (+0000) Subject: jobid clean usage (follow old Francesco's comments) X-Git-Tag: merge_3795_branch_2_0_dst~11 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=36e6a6b79bfb10d85b18f1a5d0cc5869ae569ea9;p=jra1mw.git jobid clean usage (follow old Francesco's comments) --- 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}