jobid clean usage (follow old Francesco's comments)
authorAleš Křenek <ljocha@ics.muni.cz>
Fri, 22 Jan 2010 08:20:27 +0000 (08:20 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Fri, 22 Jan 2010 08:20:27 +0000 (08:20 +0000)
org.glite.lb.doc/src/LBDG-Introduction.tex

index 7015b50..f06a4e6 100644 (file)
@@ -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}