]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/font.cpp
Docstring tweaks
[wxWidgets.git] / src / motif / font.cpp
index c4c0f9fcd6286d17eea3295d47f8f507da105d06..06637b118da1623a8c2bb1283f204ce874b5bc5e 100644 (file)
@@ -485,14 +485,14 @@ wxFontEncoding wxFont::GetEncoding() const
     return M_FONTDATA->m_encoding;
 }
 
-wxNativeFontInfo *wxFont::GetNativeFontInfo() const
+const wxNativeFontInfo *wxFont::GetNativeFontInfo() const
 {
     wxCHECK_MSG( Ok(), (wxNativeFontInfo *)NULL, wxT("invalid font") );
 
     if(M_FONTDATA->m_nativeFontInfo.GetXFontName().IsEmpty())
         GetInternalFont();
 
-    return new wxNativeFontInfo(M_FONTDATA->m_nativeFontInfo);
+    return &(M_FONTDATA->m_nativeFontInfo);
 }
 
 // ----------------------------------------------------------------------------