{"action":"created","issue":{"url":"https://api.github.com/repos/PO-21/QtReports/issues/2","repository_url":"https://api.github.com/repos/PO-21/QtReports","labels_url":"https://api.github.com/repos/PO-21/QtReports/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/PO-21/QtReports/issues/2/comments","events_url":"https://api.github.com/repos/PO-21/QtReports/issues/2/events","html_url":"https://github.com/PO-21/QtReports/issues/2","id":136270128,"number":2,"title":"Implementation classes ObjectPlant and Translator.","user":{"login":"HavenDV","id":3002068,"avatar_url":"https://avatars.githubusercontent.com/u/3002068?v=3","gravatar_id":"","url":"https://api.github.com/users/HavenDV","html_url":"https://github.com/HavenDV","followers_url":"https://api.github.com/users/HavenDV/followers","following_url":"https://api.github.com/users/HavenDV/following{/other_user}","gists_url":"https://api.github.com/users/HavenDV/gists{/gist_id}","starred_url":"https://api.github.com/users/HavenDV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HavenDV/subscriptions","organizations_url":"https://api.github.com/users/HavenDV/orgs","repos_url":"https://api.github.com/users/HavenDV/repos","events_url":"https://api.github.com/users/HavenDV/events{/privacy}","received_events_url":"https://api.github.com/users/HavenDV/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PO-21/QtReports/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"HavenDV","id":3002068,"avatar_url":"https://avatars.githubusercontent.com/u/3002068?v=3","gravatar_id":"","url":"https://api.github.com/users/HavenDV","html_url":"https://github.com/HavenDV","followers_url":"https://api.github.com/users/HavenDV/followers","following_url":"https://api.github.com/users/HavenDV/following{/other_user}","gists_url":"https://api.github.com/users/HavenDV/gists{/gist_id}","starred_url":"https://api.github.com/users/HavenDV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HavenDV/subscriptions","organizations_url":"https://api.github.com/users/HavenDV/orgs","repos_url":"https://api.github.com/users/HavenDV/repos","events_url":"https://api.github.com/users/HavenDV/events{/privacy}","received_events_url":"https://api.github.com/users/HavenDV/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-02-25T03:52:15Z","updated_at":"2016-02-28T07:50:43Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/PO-21/QtReports/issues/comments/189816865","html_url":"https://github.com/PO-21/QtReports/issues/2#issuecomment-189816865","issue_url":"https://api.github.com/repos/PO-21/QtReports/issues/2","id":189816865,"user":{"login":"HavenDV","id":3002068,"avatar_url":"https://avatars.githubusercontent.com/u/3002068?v=3","gravatar_id":"","url":"https://api.github.com/users/HavenDV","html_url":"https://github.com/HavenDV","followers_url":"https://api.github.com/users/HavenDV/followers","following_url":"https://api.github.com/users/HavenDV/following{/other_user}","gists_url":"https://api.github.com/users/HavenDV/gists{/gist_id}","starred_url":"https://api.github.com/users/HavenDV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HavenDV/subscriptions","organizations_url":"https://api.github.com/users/HavenDV/orgs","repos_url":"https://api.github.com/users/HavenDV/repos","events_url":"https://api.github.com/users/HavenDV/events{/privacy}","received_events_url":"https://api.github.com/users/HavenDV/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T07:50:43Z","updated_at":"2016-02-28T07:50:43Z","body":"ReportPtr - умный указатель, чтобы не было возни с памятью(Если наша библиотека будет возвращать просто указатель, его память надо будет самостоятельно удалять пользователю вызовом delete, к тому же не факт, что она больше не будет использоваться в библиотеке. А в случае с умным указателем - внутри идет подсчет ссылок на объект, как только он никому не нужен - он удаляется. Само использование идентично обычному разыменованию, к тому же есть проверка isNull() ). \r\nПодробнее можешь прочитать в описании QSharedPointer.\r\nСам тип объявлен в report.hpp как:\r\ntypedef QSharedPointer< Report > ReportPtr;\r\nСобственно, поэтому желательно вообще не использовать обычные указатели. Либо ссылки, либо умные указатели."}}