]> git.saurik.com Git - apt.git/commitdiff
methods/cdrom.cc: fix compile error
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 25 Jan 2010 11:09:52 +0000 (12:09 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 25 Jan 2010 11:09:52 +0000 (12:09 +0100)
methods/cdrom.cc

index 7635470134c6d41a9eb68da010b1551b44d7eb03..b0f1a1551b0c179294ed2a492ca9f09fb7340162 100644 (file)
@@ -38,7 +38,7 @@ class CDROMMethod : public pkgAcqMethod
    pkgUdevCdromDevices UdevCdroms;
  
    bool IsCorrectCD(URI want, string MountPath, string& NewID);
-   bool AutoDetectAndMount(URI, string &NewID);
+   bool AutoDetectAndMount(const URI, string &NewID);
    virtual bool Fetch(FetchItem *Itm);
    string GetID(string Name);
    virtual void Exit();
@@ -92,7 +92,7 @@ string CDROMMethod::GetID(string Name)
 // CDROMMethod::AutoDetectAndMount                                      /*{{{*/
 // ---------------------------------------------------------------------
 /* Modifies class varaiable CDROM to the mountpoint */
-bool CDROMMethod::AutoDetectAndMount(URI Get, string NewID)
+bool CDROMMethod::AutoDetectAndMount(const URI Get, string &NewID)
 {
    vector<struct CdromDevice> v = UdevCdroms.Scan();